dlebowski Posted March 8, 2010 Share Posted March 8, 2010 Hi. I have an application that authenticates users using php and creates a session. I am using ajax and therefore there may be very long periods of inactivity. I want the session to stay active for a long period of time. Is this something I change in php.ini? Or how do I go about doing this. Thank you in advance. Ryan Quote Link to comment Share on other sites More sharing options...
aeroswat Posted March 8, 2010 Share Posted March 8, 2010 Hi. I have an application that authenticates users using php and creates a session. I am using ajax and therefore there may be very long periods of inactivity. I want the session to stay active for a long period of time. Is this something I change in php.ini? Or how do I go about doing this. Thank you in advance. Ryan Look into session.gc_maxlifetime in your php ini Quote Link to comment Share on other sites More sharing options...
dlebowski Posted March 8, 2010 Author Share Posted March 8, 2010 Thank you for the direction. It's it's set to 1440, what time frame is that? Is that seconds? Quote Link to comment Share on other sites More sharing options...
xnowandtheworldx Posted March 8, 2010 Share Posted March 8, 2010 Thank you for the direction. It's it's set to 1440, what time frame is that? Is that seconds? Yes, I do believe it is in seconds. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.