Prestashop Login: Fix automatic logout problem

You need to login to PrestaShop Admin to manage your products, track the orders, change the module configuration settings...etc. A few seconds after login success, you automatically log out. What's wrong?

I'm sure that your computer is not the cause of this. For some reason, it kicks you out of the session. It's no fun if PrestaShop developers need to configure their addons or check order status immediately.

Follow this PrestaShop tutorial to figure it out and get the easiest solution by accessing the database of your PrestaShop store.

PrestaShop Login

Hi everyone, I'm Sarah at PrestaSOO team. I'm developing many online stores as well as PrestaShop Addons & related services for our clients like you and many developers out there.

But once a day, for an unknown reason, I can not access the Administration Panel.

No, I mean once logged in using my email address as the username and fill the password field, you automatically log out.

That was crazy!

I know I'm not the only one who faces this issue. When I did some research last weekend for solving technical problems related to our products and PrestaShop modules, I have seen people complained about it. They are finding an answer for their question, from 2013 until now, from their official forum to Stack Overflow.

So, I can't wait to tell you How to fix the PrestaShop logout problem on your online shop without using any plugin.

How to login PrestaShop Admin Panel

First, you need to navigate to your admin folder to access the back office (PrestaShop Admin Panel). During the PrestaShop installation process, the location of the admin is renamed. (i.e. admin123).
So, open your browser, type your-website.com/admin123 in the address bar and use the correct login information on the login screen.

Lost admin password? Here is an option to get a new administrator password and access Prestashop admin panel URL on your Online Store in case your eCommerce store can not send emails (Really? Read my article to discover How to set up Gmail SMTP Settings as one of your third party services instead of mail() function from your PrestaShop hosting provider by default) or can not access your email [email].

Fix Automatic log out problem

Every time you log in to PrestaShop Admin Dashboard and select a menu, it always redirects automatically to the login page. No matter how many times you try it, it always happens. That's really terrible user experience!

If there is ever a time you don't get kicked out right away, try to disable Check the IP address on the cookie option in Advanced Parameters → Administration → General (version 1.7) or Preferences menu (version 1.6).

Unfortunately, it does not usually work because you will be kicked out Admin Dashboard before doing something. You can not change this value by accessing the source code and find this value using your file manager. So, we have to do this tricky way by accessing the PrestaShop database via PhpMyAdmin or any SQL manager tool:

  • Access your MySQL manager (phpMyadmin, CPanel, etc...)
  • Run this SQL query: UPDATE ps_configuration SET value = 0 WHERE name='PS_COOKIE_CHECKIP';

In this case, ps_ is my table prefix, you may adapt it to your settings.

This query will update the PS_COOKIE_CHECKIP from value 1 to 0. Now with this tutorial, you can make a quick login to access your Prestashop Administration Panel page to install a PrestaShop addon, customize your PrestaShop theme or configure a PrestaShop module without any problem.

Does this issue happen on a customer account at Front Office?

Leave a comment below (you can use your social network account such as Facebook/Twitter to log in) and I will find a solution for you.

People in this conversation

Javier Fernández Morell
This comment was minimized by the moderator on the site

SQL dice que la consulta es errónea, ¿podríais revisar el código?

MySQL ha dicho: Documentación

#1064 - Algo está equivocado en su sintax cerca '= 0 WHERE name='PS_COOKIE_CHECKIP'' en la linea 1

Frank Kenedy    Javier Fernández Morell
This comment was minimized by the moderator on the site

Hola javier
No edite la consulta SQL usted mismo, simplemente cópiela y péguela para ejecutarla:
UPDATE ps_configuration SET value = 0 WHERE name='PS_COOKIE_CHECKIP';

PrestaSOO team
Everything you need to make a living doing work you love.

Discover

It is a wise investment

Prestashop modules we created first to solve the problem of our own business - an e-Commerce site. That means they are very useful for a serious business. If you value your web property, these modules are a wise investment.
Sarah Reeves, App Developer @ PrestaSOO
Made with in Paris & Hanoi
PrestaSOO © 2021. All rights reserved. // Privacy Policy Terms of Service