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
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?
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.
Summary: a couple things... i dont know much about sessions but here it goes: you could have a parse error (forgot the ; on the end of line 2). the session didnt have any information (i dont know a lot about s...