Does not Logout, just refreshes the page

SweetSpot - October 13, 2008 - 18:22
Project:Automated Logout
Version:5.x-2.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:by design
Description

I am running into a very strange issue. I installed Automated Logout and enabled the module as well as specified policies for the roles I have. For test purposes I set the timeout for 15 seconds with browser refresh delta at 1 second. After 15 seconds of being logged in the page is refreshed and I can still access all the information and links without a problem. I am not logged out until I hit Log Out manually or close the browser window. This behavior is the same in IE and FF. I am using a WebFM and Front Page modules with latest patches installed. I am running Drupal 5.2.

Is there a php.ini adjustment that I need to make or is it something else?

Thank you~

#1

jrglasgow - October 14, 2008 - 15:10

The way the auto refresh feature works it not the way I would like it to. We cannot tell your browser to count to 15 then refresh, we have to give your browser an exact time. When the page is loaded the server does the calculations, takes the current time, adds the autologout timeout and the refresh timeout and tells your browser to refresh the page at that time. Therefore if your computer's time is not exactly in sync with that of the server the browser will not refresh at the exact time that the browser expects it to.

Automated Logout keeps track of the last time your browser downloaded a page. This is how it can tell if you have exceeded the max allowed inactivity time. Each time the page reloads it checks to see if you have exceeded the allowed time. My guess is that your computer's time is a little faster than the server's time, with a refresh delta of just a second your computer would have to be right on with the server, or a little slower to have the desired effect.

I would suggest a refresh delta of atleast 20 seconds.

#2

SweetSpot - October 14, 2008 - 19:30

Thank you, jrglasgow. I was able to change the delta time to 20 seconds like you recommended, and it worked like a charm. But now when I want to increase the timeout from 15 seconds to say 600 (10 minutes). I leave the delta at 20 seconds, but the result is the same as I've mentioned in my initial post, the page gets refreshed and I remain logged in. I don't understand why it would happen. I tried increasing the delta time to 60 seconds, but no luck. The page just gets refreshed and I am still logged in. I read about the timing being off in other support requests, but I would like to figure out how can I make a 10 minute timeout work on my website. Is there a certain formula that can help calculate this or is it a matter of experimentation?

Thank you,

SweetSpot

#3

jrglasgow - October 14, 2008 - 20:37

I couldn't say what the best way to figure the timeout should be. I began working on this module to help upgrade a specific site and I have that site set to logout after 1 hour and refresh 5 minutes later. The best thing I can sugest is have the refresh a couple of minutes.

#4

SweetSpot - October 20, 2008 - 21:48
Status:active» by design

After messing with this for a couple of days I got it to finally timeout at exactly 10 minutes. I set timeout to 240 seconds and refresh delta to 360. I couldn't believe that the refresh delta had such serious lag. Anything less than 360 would just refresh the page to the previous state and not log out. I still don't understand how the whole timeout function works with server/client clock. But what matters is that it works now. Thank you, jrglasgow, for responding!

~SweetSpot

 
 

Drupal is a registered trademark of Dries Buytaert.