prompting/popup when current session is about to expire

najibx - July 17, 2009 - 08:17
Project:Automated Logout
Version:6.x-2.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Does this currently available in this version or 3.x-dev? If not mistaken,Session Limit module has this feature.

#1

sicjoy - August 10, 2009 - 14:51

It would be awesome if the user was given the option to continue their session in this prompt/popup without refreshing the page. Perhaps reset the timer using an AJAX call. That would be an excellent way to prevent data loss during form entry.

#2

s4j4n - August 10, 2009 - 23:33

It would be awesome if Automated Logout would prompt the user that their session is about to expire, and give the user the option of pressing OK/CANCEL to continue their session/logout - or simply automatically logout the user after the 2 minute prompted warning is shown. (Allowing the admin to set the length of time prior to the warning prompt and actual logout, as well as further customization of the prompt would be very cool too).

The functionality I described above is basically something you might have experienced when you use the website of your bank or credit card. I don't think Session Limit has this feature.

The admin page for Session Limit ( Site Configuration -> Session Limit ) only has two choices:

  • text field: maximum number of active sessions (default set to 1)
  • check box: automatically drop the oldest session without prompting (default set to unchecked)

I have yet to see the prompt warning the user that their session is about to expire. I've tested it with multiple browsers, with different user roles, with the automated logout module turned on and off with a timeout of 30 seconds, 60 seconds, etc. and nothing happens. Eventually I click on a link after a sufficient amount of time has passed over the time out and I get redirected to the login front page (if automated logout module is turned on).

#3

sicjoy - August 13, 2009 - 03:58

You don't get the prompt warning unless you use the automated logout info block in conjuction with the countdowntimer module.

Perhaps a break from the countdowntimer module is in order as that would give this module more control over the prompts, etc. I would be willing to help with the AJAX/javascript side of things if the maintainer is interested.

 
 

Drupal is a registered trademark of Dries Buytaert.