Backend - any action redirects to login.php

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
antonumia
Posts: 77
Joined: Mon 14. Feb 2005, 16:10
Contact:

Backend - any action redirects to login.php

Post 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
User avatar
antonumia
Posts: 77
Joined: Mon 14. Feb 2005, 16:10
Contact:

Re: Backend - any action redirects to login.php

Post by antonumia »

I am now getting this on a clean install on a vps running linux and plesk.
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: Backend - any action redirects to login.php

Post by Heiko H. »

Hi,

"Session Support" is enabled?
What is the "Locale Value" for "session.save_path" if you run phpinfo()?
Not longer here - sorry...

Haubner-IT GbR Dresden
User avatar
antonumia
Posts: 77
Joined: Mon 14. Feb 2005, 16:10
Contact:

Re: Backend - any action redirects to login.php

Post by antonumia »

hi,

Yes, sessions are enabled and the save path is /var/lib/php/session.
User avatar
Oliver Georgi
Site Admin
Posts: 9889
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Backend - any action redirects to login.php

Post 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.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Heiko H.
Posts: 868
Joined: Thu 27. Oct 2005, 11:41
Location: Dresden
Contact:

Re: Backend - any action redirects to login.php

Post 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..
Not longer here - sorry...

Haubner-IT GbR Dresden
User avatar
antonumia
Posts: 77
Joined: Mon 14. Feb 2005, 16:10
Contact:

Re: Backend - any action redirects to login.php

Post 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?
User avatar
antonumia
Posts: 77
Joined: Mon 14. Feb 2005, 16:10
Contact:

Re: Backend - any action redirects to login.php

Post 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.
Post Reply