user4826347
user4826347

Reputation: 783

AWS Elastic Beanstalk PHP installation - session time out

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

Answers (1)

Arpit Jain
Arpit Jain

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:-

session.gc_maxlifetime

PHP - How to implement session lifetimes

Upvotes: 1

Related Questions