Jump to content

Extending Sessions Lifetime in PHP


dlebowski

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.