Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

user_session_length for Auto-logout

Quote Reply
user_session_length for Auto-logout
Can the user_session_length be set to a fractional number, i.e. 0.5 for a half day?

I ask because I am trying to set it to 0.04167 which equates to about 1 hour, yet the session seems to expire long before that.

I am using the value from this setting to implement a javascript auto-logout warning and subsequent auto-logout feature. Basically 5 minutes before the user's session expires, I alert them that their session is ABOUT to expire. They can choose to 'Resume' or 'Logout'. If they do not make a choice within 1 minute, I auto-dismiss the dialog and proceed to log them out. If they 'Resume', I reset the session_date in Sessions table and start over, thus extending their session.

It is 99.99% completed/working. I'm just left ironing out the actual timing details which is why I need to know if I can use a decimal number for user_session_length. The user_session_length setting accepts the decimal fraction, and I am able to calculate my values from the setting, but I seem to be logged out (session expired) very quickly.

Thanks for any assistance. I'll post the code if anyone is interested.
RGB World, Inc. - Software & Web Development.
rgbworld.com
Subject Author Views Date
Thread user_session_length for Auto-logout rgbworld 6949 Jul 29, 2011, 11:56 AM
Thread Re: [rgbworld] user_session_length for Auto-logout
eupos 6750 Jul 29, 2011, 12:02 PM
Thread Re: [eupos] user_session_length for Auto-logout
rgbworld 6746 Jul 29, 2011, 12:32 PM
Thread Re: [rgbworld] user_session_length for Auto-logout
brewt 6750 Jul 29, 2011, 1:04 PM
Post Re: [brewt] user_session_length for Auto-logout
rgbworld 6670 Aug 2, 2011, 8:31 AM