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.
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).
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.
I made a pretty sweet little "popup" just using css, the countdown timer module, and the scripting already included in the module.
1) in autologout.module line 151: Add an extra set of span tags: <span style="display:none" class="format_txt"><span class="">You will be automatically logged out in %mins%:%secs%</span></span>
2) add some css so that the box is "display: none" until the moment when countdowntimer adds the extra span (the one that makes it red by default)
Hope that's helpful to someone... the position:fixed doesn't seem to work in IE6 for me, but the box still appears where the block is placed on the page. You could put it in the header or sidebar and it should be a fine backup for IE6 users.
Works great in all the other a grade browsers.
Of course it would also be great to see a javascript solution that actually triggers a warning box at a certain time.
Is there a javascript call that would reset the timer? It would be nice to put a little "please keep me logged in" button below the warning that wouldn't refresh the page but would reset the timer...
This is a feature available in the 4 branch. All x.x-4.x versions have a pop-up that alerts the user to their session about to end and allows them to extend it. However there is currently no upgrade path between the 2 branches. Therefore I would not recommend it, it cause issues with having to redo all your settings and will mean a loss of some features in the 4branch does not support that the 2 branch does.
Comments
Comment #1
sikjoy commentedIt 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.
Comment #2
s4j4n commentedIt 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:
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).
Comment #3
sikjoy commentedYou 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.
Comment #4
jvandervort commentedMoved to the current dev head.
Comment #5
squarecandy commentedI made a pretty sweet little "popup" just using css, the countdown timer module, and the scripting already included in the module.
1) in autologout.module line 151: Add an extra set of span tags:
<span style="display:none" class="format_txt"><span class="">You will be automatically logged out in %mins%:%secs%</span></span>2) add some css so that the box is "display: none" until the moment when countdowntimer adds the extra span (the one that makes it red by default)
Hope that's helpful to someone... the position:fixed doesn't seem to work in IE6 for me, but the box still appears where the block is placed on the page. You could put it in the header or sidebar and it should be a fine backup for IE6 users.
Works great in all the other a grade browsers.
Of course it would also be great to see a javascript solution that actually triggers a warning box at a certain time.
Is there a javascript call that would reset the timer? It would be nice to put a little "please keep me logged in" button below the warning that wouldn't refresh the page but would reset the timer...
Comment #6
adam_b commentedsubscribe... I'd like this too
Comment #7
dandrews commentedThis is a feature available in the 4 branch. All x.x-4.x versions have a pop-up that alerts the user to their session about to end and allows them to extend it. However there is currently no upgrade path between the 2 branches. Therefore I would not recommend it, it cause issues with having to redo all your settings and will mean a loss of some features in the 4branch does not support that the 2 branch does.
Comment #8
dandrews commentedComment #9
johnennew commentedThis is in the 4.x branches. Closing old issue.