Page 1 of 1
Backend - any action redirects to login.php
Posted: Thu 20. Jan 2011, 12:24
by antonumia
Hi all,
I have a client who can't do anything in the bBE - they just get redirected to login.php?ref=<last backend page url>
I assume this is due to some server change as the site has been running fine for a year or two.
There are no errors in the php error_log.
Any quick fixes before i look at reinstalling?
thanks
anton
Re: Backend - any action redirects to login.php
Posted: Thu 31. Mar 2011, 14:40
by antonumia
I am now getting this on a clean install on a vps running linux and plesk.
Re: Backend - any action redirects to login.php
Posted: Thu 31. Mar 2011, 21:53
by Heiko H.
Hi,
"Session Support" is enabled?
What is the "Locale Value" for "session.save_path" if you run phpinfo()?
Re: Backend - any action redirects to login.php
Posted: Fri 1. Apr 2011, 15:27
by antonumia
hi,
Yes, sessions are enabled and the save path is /var/lib/php/session.
Re: Backend - any action redirects to login.php
Posted: Sat 2. Apr 2011, 08:19
by Oliver Georgi
It is a session and/or db problem. While logged in to the backend user get a session and a status in db which is updated on each page activity. Based on current time and db log time user will disconnetced on timout. Check your config $phpwcms['max_time'] – maybe this is too low. Some customers need long time while writing.
Re: Backend - any action redirects to login.php
Posted: Mon 4. Apr 2011, 08:48
by Heiko H.
antonumia wrote:hi,
Yes, sessions are enabled and the save path is /var/lib/php/session.
Okay, is /var/lib/php/session existing and has the webserver-user write permissions there?
Are sessions in /var/lib/php/session if you login to backend?
Regards Heiko..
Re: Backend - any action redirects to login.php
Posted: Mon 4. Apr 2011, 11:47
by antonumia
Thanks Oliver,
I extended to 18000 which improves it somewhat but doesn't fix it.
Annoying as this is the only one of around 20 installs on 5+ servers.
I have root privileges on the server.
Is there anything else I can do?
Re: Backend - any action redirects to login.php
Posted: Mon 4. Apr 2011, 11:48
by antonumia
Heiko H. wrote:antonumia wrote:hi,
Yes, sessions are enabled and the save path is /var/lib/php/session.
Okay, is /var/lib/php/session existing and has the webserver-user write permissions there?
Are sessions in /var/lib/php/session if you login to backend?
Regards Heiko..
Hi,
Yes these are both there. I suspect Oliver has it though.
Wierd for a VPS though. I think I'll restart it and take it up with the hosting company.