PrestaShop Admin Auto Log Out

After migrating a PrestaShop site to a new server, logging in to the admin area shows the dashboard, and when I click any link, I get redirected to the login page.

Initially, I suspended the problem due to the PHP session not working properly, to verify, I created a file with the following content.

Accessing the page, I can see the count increase every time I refresh the page, which confirms the PHP session is working.

The site was using cloudflare CDN. This made IP of the visitor change. To fix this, I enabled remoteip module in Apache. You can find instructions for enabling the remoteip module at Cloudflare Show Real IP Address on CentOS Plesk Server

Another solution is to disable IP checking in PrestaShop with the following SQL

Back to PrestaShop

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *