D3 K
D3 K

Reputation: 682

Does heavy usage affect SESSIONS?

I have a school web site that I developed in PHP/MySQL. One of my manager complaints that system automatically logs him out after some time. The working hours of that manager is during peak usage of the website.

My question is if a lot of people get login at the same time, will this cause SESSION Timeout/Auto logout or something like that ?

Upvotes: 0

Views: 49

Answers (1)

Martin Zeitler
Martin Zeitler

Reputation: 76679

This is because the garbage collector has a default session timeout of 1440 seconds.

You can either raise the timeout, or just drop any AJAX call once every 10min, in order to reset the timeout... that's called "session stretching".

Upvotes: 1

Related Questions