Reputation: 783
I've observed that my PHP pages in the production environment session times out but unable to figure out what determines the duration of time out.
I use AWS ElasticBeanstalk to run the PHP code.
I'd like to find out
Thanks in advance
Upvotes: 0
Views: 172
Reputation: 4043
If the session timeout is not explicitly set through the code, then you can check the default value set in the php.ini
file for session.gc_maxlifetime
which specifies the number of seconds after which data will be seen as 'garbage' and potentially cleaned up. Garbage collection may occur during session start (depending on session.gc_probability and session.gc_divisor). Defaults to 1440 (24 minutes).
References:-
PHP - How to implement session lifetimes
Upvotes: 1