Topic-icon Autologin fail or am I confused?

Active Subscriptions:

None
13 years 10 months ago #25452 by BeppeN
So, autologin works once, but if I restart the browser (or log out from joomla, of course) I get logged out of Joomla, and then autologin does not work. If I clear cache, cookies etc. from the browser it works again. Once. Then the same thing happens, after restarting the browser it does not work.
Am I missing something in the settings? The supersimple site is at test.visviva.se.
The topic has been locked.
Support Specialist
13 years 10 months ago #25457 by alzander
The auto-login has a timeout feature. We set a cookie in the users browser to prevent the auto-login from occurring for the length of your Joomla session timeout (in Global Config). That counter is reset when a) an autologin occurs or b) the user clicks the logout button on Joomla. From that reset period, the auto-login will not fire for until 'session timeout' minutes later.

The reason we have the timeout is due a bug that Facebook introduced about a month ago where the autologin could repeatedly be called. Addtionally, when the user logs out of Joomla, they shouldn't be auto-logged back in, or that will completely frustrate the user who isn't able to log out.

Hope that makes sense. If you need, we can help you disable or decrease the timeout.. though I wouldn't recommend it. In 'normal' use, a user generally shouldn't be logging in and out repeatedly, though I can understand how, for testing, it can be annoying.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 10 months ago #25465 by BeppeN
Excellent, that would explain the behaviour. No need for any changes then, I was just worried that my setup had somehow broken the autologin. Thanks for the pointer!
The topic has been locked.
Support Specialist
13 years 10 months ago #25470 by alzander
Glad we could explain. It can be confusing.. there's honestly a few things in JFBConnect that are workarounds for common issues. However, you'll only run into those oddities when you're testing. We always code for the best user experience, but that means that it can cause minor testing issues, like you mention.

Either way, should you run into anything else or have any other questions, just let us know!

Best of luck,
Alex
The topic has been locked.