Closed (fixed)
Project:
Drupal core
Version:
6.9
Component:
user system
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2009 at 07:05 UTC
Updated:
31 Mar 2009 at 11:40 UTC
Hi
If a user is inactive for some time || closes the browser || shuts down the PC(even restart
User's session must end or simply logout..
There was a module called "autologout" Enabled appropriate settings.. Dint work
As a newb..
When tried to access the module code there were some actions based on the condition
if (module_exists("countdowntimer")) {
if (variable_get('countdowntimer_js_load_option', 0) != 1 )
When i installed that module it did not intimate me about its dependency on coundowntimer module..
Still i downloaded countdowntimer module and enabled...NOT WORKING
There was one more module "Session expire" Din't work
Temporarily i used javascript with
Any idea pls..
ty
Comments
Comment #1
Sandymaguire commentedtemporarily i used javascript with document.onmousemove event that logs out when there is inactivity for 15 mins..
But no clue for ending session when user closes browser or restarts PC.
pls help
ty
Comment #2
ainigma32 commentedTry changing the lines in settings.php (around line 143):
See here http://www.php.net/manual/en/session.configuration.php#ini.session.cooki... for the cookie stuff and here http://www.php.net/manual/en/session.configuration.php#ini.session.gc-ma... for the session part.
IIRC the maxlifetime bit should tackle the use case where a user is inactive for some time and the cookie bit should work for users that close the browser.
Please post back how that works out for you.
- Arie
Comment #3
ainigma32 commentedLooks like Sandymaguire won't be posting any feedback so I'm setting this to fixed.
Feel free to reopen if you think that is wrong.
- Arie
Comment #4
Sandymaguire commentedhi sorry for late reply...
Actually this setting is working perfectly on localhost when i make the changes on my hosted site...it's not working.
ty
Comment #5
ainigma32 commentedNo problem ;-)
The values not changing is a configuration issue that you should try to work out with your hosting provider.
They may have restricted access to these config options by using
php_admin_valuein httpd.confTo make sure it isn't working you can use
ini_getin a PHP block to see what the value is when running Drupal.I will leave this issue to fixed for now but feel free to change that if you (or anyone else) disagree.
- Arie