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

Sandymaguire’s picture

temporarily 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

ainigma32’s picture

Assigned: Sandymaguire » Unassigned
Status: Active » Postponed (maintainer needs more info)

Try changing the lines in settings.php (around line 143):

//...snip
ini_set('session.cookie_lifetime',  2000000);
ini_set('session.gc_maxlifetime',   200000);
//...snip

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

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

Looks 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

Sandymaguire’s picture

hi 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

ainigma32’s picture

No 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_value in httpd.conf

To make sure it isn't working you can use ini_get in 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.