I have a PHP application. It is load balanced across 2 servers. The problem is I keep getting logged out of the session I am in (after a long period of time) and I am not sure why. I have not been with this code for very long and am not sure where to start.
It’s a Zend Framework application.
Any ideas?
Might be how your sessions are managed.
Check the session manager:
If you get the below:
Try a session and check that the file is created on one of the web servers but not the other. The options say that it is stored in a file.
If it is then the problem is the session manager. Change the session manager to use the db or memcached (if possible). It needs to be something which could manage users on both server.