Jump to content

The Backoffice page just reloads and returns to the login screen


achraf99

Recommended Posts

I’m running PrestaShop 1.7.8.1 and suddenly can’t access my back‑office. After entering the correct email and password, the page just reloads and returns to the login screen. I’ve checked PHP version, SSL, cleared caches, and confirmed that PS_SHOP_DOMAIN, PS_SHOP_DOMAIN_SSL and PS_COOKIE_CHECKIP values are correct. The dev.log only shows deprecation notices no errors. Could you please advise on how to resolve this login loop?

Link to comment
Share on other sites

  • 2 weeks later...

This is almost always a cookie not being saved / immediately invalidated, so you get redirected back to the BO login.

Do these quick checks:

  • Test in incognito + clear cookies for your domain.
  • If you use Cloudflare / reverse proxy, disable IP checking (common cause). In DB run:
UPDATE ps_configuration SET value='0' WHERE name='PS_COOKIE_CHECKIP';

Then delete /var/cache/* and retry.
3) Make sure you always use one single BO URL (same host: www vs non-www, and HTTPS only). Domain mismatch can drop the cookie.

If it still loops: in DevTools (Network) after login, check if the response sends Set-Cookie. If not (or wrong domain), it’s a server/proxy HTTPS/header issue.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...