Login Expiring Prematurely
Permalink
I've been having a problem with the login session expiring (presumably). I login, go to edit a page, and then when I exit edit mode, I get an 'access denied' message, even though I had just logged in as admin moments ago. This is occurring unpredictably. Sometimes it works fine, other times it does not. It's a nuisance since each time it occurs I have to log back in.
Any ideas what could be causing this?
Any ideas what could be causing this?
Browsing other pages on your website while you are editing that page?
I'm not sure and I need to troubleshoot it more, but I suspect that this might be related to another post I made about a server 500 error with certain ajax requests. My client's server setup has been giving me all sorts of grief and I suspect that this is due to a server configuration issue.
In all other cases, Concrete5 has proven to be very reliable. When I figure out the problem, I'll post the solution here for others.
(Update: see post below. It was not related to the 500 error, but the server cluster *@#!)
In all other cases, Concrete5 has proven to be very reliable. When I figure out the problem, I'll post the solution here for others.
(Update: see post below. It was not related to the 500 error, but the server cluster *@#!)
After tearing my hair out for a while I discovered why my sessions were timing out unpredictably. The server is on clustered hosting and the tmp directory which sessions are saved to by default is specific to each cluster node (stupid setup if you ask me). So if the initial request is handled by one machine, and a subsequent handled by another, the session is lost.
To fix this, I created a new session directory in my web directory and set this as the session.save_path in php.ini. This way the session data is saved in a path that is universal to all the cluster nodes.
To fix this, I created a new session directory in my web directory and set this as the session.save_path in php.ini. This way the session data is saved in a path that is universal to all the cluster nodes.