How can I increase my PHP sessions maxlife?

Avatar
  • updated
  • Answered
Pinned replies
Avatar
Arn
  • Answer
  • Answered

Hello Kchersey,


You can make a change to your local PHP.INI file that should take care of the issue for you. The change would need to be made to the session.gc_maxlifetime setting. Click here to get more information on editing your local php.ini file.


Please increase the value in that file. If your application is in a subdirectory, then either copy the modified PHP.INI file into that same directory, or make your PHP.INI recursive. This should take care of the issue for you.


If you have any further questions, please contact technical support available 24 hours a day / 7 days a week.


Arnel C.

InMotion Hosting

Community Support Team

Avatar
Arn
  • Answer
  • Answered

Hello Kchersey,


You can make a change to your local PHP.INI file that should take care of the issue for you. The change would need to be made to the session.gc_maxlifetime setting. Click here to get more information on editing your local php.ini file.


Please increase the value in that file. If your application is in a subdirectory, then either copy the modified PHP.INI file into that same directory, or make your PHP.INI recursive. This should take care of the issue for you.


If you have any further questions, please contact technical support available 24 hours a day / 7 days a week.


Arnel C.

InMotion Hosting

Community Support Team