Computing.Net > Forums > Web Development > Session timout

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Session timout

Reply to Message Icon

Name: compu-angus
Date: November 27, 2008 at 12:28:14 Pacific
OS: XP
CPU/Ram: P4/1GB
Product: Dell
Comment:

I installed apache, mysql, php on linux box, i have the application that I want if user not in active session for 10 mins, it will be time-out and need relogin, does anyone know where I can set this up? in httpd.conf or php.ini, what directive I should use?



Sponsored Link
Ads by Google

Response Number 1
Name: shutat
Date: November 28, 2008 at 20:44:00 Pacific
Reply:

I *think* that's done through session.gc_maxlifetime in php.ini; if the user is idle for X time, then the data stored has a chance of being seen as garbage. I haven't worked with sessions, so I'm not positive.

For 10 minutes, try setting that value to 600 and see if it will work.

HTH


0
Reply to Message Icon

Related Posts

See More


JavaScript IE events clos... Many Items On Website



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Session timout

apache::Session module www.computing.net/answers/webdevel/apachesession-module/326.html

PHP sessions not working www.computing.net/answers/webdevel/php-sessions-not-working/1163.html

Perl session example www.computing.net/answers/webdevel/perl-session-example/321.html