Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi
i am new to drupal
i want to end the session of user after 1 hour if he/she
are inactive.
please guide me
thanking you
vara prasad
Posted
Comments
Manfred Rudolf Bihy 25-Apr-11 11:29am    
Updated my solution with a link to a site where the session timout is properly adressed.

Please find all the relevant configuration information here: http://php.net/manual/en/session.configuration.php[^].

The value you should be look at is session.cookie_lifetime.


[Update]

Please have a look here and read the comments of all the other posters on that thread: http://www.daniweb.com/web-development/php/threads/124500[^].

[End Update]

Best Regards,

-MRB
 
Share this answer
 
v2
Comments
Henry Minute 25-Apr-11 11:21am    
Manfred, doesn't that just set an overall lifetime, not a 'period-of-inactivity' time?
Manfred Rudolf Bihy 25-Apr-11 11:23am    
Hmm, sounds like I missed somethinng there Henry. I'll have another look!
Thanks for the feedback.
Manfred Rudolf Bihy 25-Apr-11 11:28am    
Updated my answer with a link to a site where the session timout is properly adressed.
Henry Minute 25-Apr-11 11:29am    
Good one! :)
You may find someone here who knows the answer to this but you are far more likely to get quicker, more valid answers if you ask on the Drupal Site[^].
 
Share this answer
 
Comments
Manfred Rudolf Bihy 25-Apr-11 11:29am    
Yes most likely a better source for help on this issue! 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900