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 Link to comment https://forums.phpfreaks.com/topic/194536-extending-sessions-lifetime-in-php/ 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 Link to comment https://forums.phpfreaks.com/topic/194536-extending-sessions-lifetime-in-php/#findComment-1023154 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? Link to comment https://forums.phpfreaks.com/topic/194536-extending-sessions-lifetime-in-php/#findComment-1023200 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. Link to comment https://forums.phpfreaks.com/topic/194536-extending-sessions-lifetime-in-php/#findComment-1023206 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.