php sessions timing out too soon

Avatar
  • Answered
php sessions timing out at 1 hour even though session.gc_maxlifetime is set to 10800 (3hours) in php.ini in the main directory and in the sub directory and on each page of the website
Avatar
Arn
Hello, Sorry for the problem with the php sessions timing out too soon. The GC_maxlifetime is associate with "Garbage Collection" and does not always run. You can find much more detail on this issue by seeing this article. The article references this tutorial from the official PHP.NET manual. It explains that the code generally has a 1% chance of running and not working the way you expect it to be working. I hope this helps to answer your question, please let us know if you require any further assistance. Regards, Arnelc