Bobcares Logo
Search Call 1-800-383-5193 Emergency Contact
Bobcares Logo
Search Call 1-800-383-5193 Emergency Contact
Emergency Contact

Prestashop admin login problem – Why you get kicked out of the admin panel?

by Lakshmi Vijayakumar | Oct 29, 2018 | Server Administration | 2 comments

Prestashop has stringent security features.

One such feature is  Short Session timeouts. This is to reduce the exposure of your application to session based attacks like session cookie theft.

However, this can cause issues even for legitimate users.Store admins could get kicked out of the admin interface if they remain inactive (say by attending a call) in the middle of a store update. It can be very frustrating.

We’ve seen many causes for this error as part of our Support Services, where we manage tech support desk of web hosts.

Today, let’s discuss when we see this error, why and how we can fix it.

 

Prestashop admin login problem – Where do you see this error?

Website owners cite broadly 3 situations in which this issue happens:

  1. Prestashop admin panel kicks out the administrator in the middle of updating product settings (yes, no reason at all).
  2. Prestashop store owner cannot login, no matter how many times the browser cache is cleared. It keeps showing the login page again & again.
  3. Prestashop admin panel logs out the owner after a few minutes of inactivity.

 

Top 3 reasons for Prestashop admin login problem

Let’s discuss the top 3 reasons for this problem.

  1. Maximum duration of inactivity set – “Admin Controller” manages  Backoffice functionalities in Prestashop. The default cookie inactivity period is set to 15 mins in this file.You’ll be kicked out of the admin panel after 15 mins of inactivity.
  2. Use of dynamic IP address – When you are in Prestashop admin panel, it secures the session by tagging your login session with your IP address(via authentication cookie). It constantly checks for this IP address. If your IP address changes, it will invalidate the cookie and and ask you to re-login again.
  3. Incorrect values for “PS_SHOP_DOMAIN” and “PS_SHOP_DOMAIN_SSL” – Incorrect domain name given for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL  in the table ps_configuration.

 

Prestashop admin login problem – How to fix this error?

To fix this, we primarily use 5 different ways, based on the exact issue the store owner is facing.

But before we get into the details, and you make any changes to the store, make sure that you have the backup of your database and website files.

 

1. Clear browser cache and cookies

To verify this try to access from another browser or turn on ‘incognito mode’.

 

2. Clear Prestashop cache

The cache files are located in these locations.

Go to these folders and delete all the files in them.

  • /tools/smarty/cache
  • OR /tools/smarty_v2/cache

 

  • /tools/smarty/compile
  • OR  /tools/smarty_v2/compile

 

3. Correct the domain name saved in database

Give the correct domain name for PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL  in the table ps_configuration.

You should give the domain name only. For eg: your store URL is http://test.com/store/, you should give the values as:

PS_SHOP_DOMAIN = test.com
PS_SHOP_DOMAIN_SSL = test.com

 

The install directory should be given in the file “/config/setting.inc.php“.

 

4. Disable IP address check

Remove the user’s IP address check done by Prestashop.

You can disable it in the file “classes/cookie.php” inside the function “isLoggedBack()“.

Here, remove or comment the following condition.

!Configuration::get('PS_COOKIE_CHECKIP'))

 

5. Increase the cookie inactivity period

The inactivity period is set as 15 mins by default.

You can increase this value in the file “classes/controller/AdminController.php“.

Look for the below code in the file:

if (time $ this-> Context> cookie-> last_activity + 900 <())

 

Here the inactivity period is set as 900s(15 mins). You can replace this value in seconds.

 

Conclusion

Prestashop admin login problem is a common issue that store owners can come across. Today, we have discussed the top reasons for this error and how our Support Engineers fix them.

Related posts:

    1. Prestashop ‘Access denied’ error – Here are the steps to fix it
    2. How to clear cache in Prestashop manually & from backoffice
    3. Prestashop Bad configuration file – Causes and Fixes
    4. ‘504 gateway time-out’ in Prestashop – Here’s how to fix it

2 Comments

  1. Ozgur Sahin
    Ozgur Sahin on 2020-07-13 at 17:11

    Hi i have this problem. Also the clients have similar problems. They cant login and when they click checkout they re directed to homepage. Is this related?

    Reply
    • Sijin George
      Sijin George on 2020-07-15 at 12:58

      Yes Ozgur, it can be related.
      If you still have errors and need help, we’ll be happy to talk to you on chat (click on the icon at right-bottom).

      Reply

Submit a Comment Cancel reply

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

Recent Posts

  • A 15-Minute Self-Hosted RAG Stack Tutorial: From Zero to Production
  • Designing Data Pipelines That Prevent Outages Across Global Systems
  • Deployment Automation: Deploy With Efficiency and Consistency
  • What Is Proactive Monitoring? A Complete Guide
  • AI Use Cases: How Artificial Intelligence Is Used Across Industries

Categories

  • Advanced Vulnerability
  • AI Services
  • AI Support
  • AIOps
  • Amazon Web Services (AWS)
  • Apache
  • API Integration
  • Application Development
  • Azure
  • Cloud Cost Optimization
  • Cloud Management
  • Cloud-Native Application
  • Cloudflare
  • cPanel
  • cPanel migration
  • Cyberpanel
  • DDoS
  • Development Service
  • DevOps
  • DevOps Consulting
  • DevSecOps
  • Digital Transformation
  • DigitalOcean
  • DirectAdmin
  • Docker
  • Drupal
  • Ecommerce
  • Filezilla
  • FTP
  • Google cloud platform
  • HAProxy
  • Headless CMS Integration
  • Hosting Support
  • IIS
  • Infrastructure Management & Optimization
  • Kubernetes
  • KVM
  • Laravel
  • Latest
  • Linode
  • Litespeed
  • LXC/LXD
  • Magento
  • Mobile App Development
  • MongoDB
  • Moodle
  • MySQL
  • NFS
  • Nginx
  • OnApp
  • Outsourced Support
  • OVH
  • ovirt
  • pfsense
  • Plesk
  • PostgreSQL
  • PowerDNS
  • Product Engineering
  • Proxmox
  • RedHat
  • Redis
  • Sendmail
  • Server Administration
  • Server Management
  • Software Development
  • SQLServer
  • Technical Support
  • UI/UX
  • Virtualizor
  • VMware
  • VPN
  • Vulnerability Scanning
  • Vultr
  • Web Development
  • Windows
  • WordPress
  • WordPress Hosting
  • WordPressHA

Subscribe to our newsletter

Footer newsletter

Email sales@bobcares.com | Phone 1-800-383-5193

Product Engineering

  • MVP Build
  • MVP to Scale
  • Product Maintenance

Digital Transformation

  • Process Digitization & Automation
  • Systems Integration & Workflow Orchestration
  • Data Enablement & Decision Support
  • Application & Platform Modernization
  • Transformation Execution & Delivery Enablement

AI Services

  • AI Readiness & Use-Case Discovery
  • AI Integration & Application Enablement
  • Intelligent Automation & AI Workflows

Infrastructure Management

  • Always-On Infrastructure Management
  • Proactive Monitoring & Incident Prevention
  • Cloud Cost Control & Optimization (FinOps)
  • Outsourced IT & End-User Support
  • Managed Infrastructure Execution Support

DevOps & Automation Services

  • CI/CD & Release Automation
  • Infrastructure as Code & Platform Standardization
  • Reliability Engineering & Observability
  • DevSecOps Enablement
Product Engineering +
Web Development MVP to Scale Builds Microservices Architecture Agile & Dev Team Augmentation Mobile Apps Ecommerce UI/UX Design QA & Test Automation
Digital Transformation +
Legacy Modernization Workflow Automation Data-Driven Dashboards CRM / ERP Integration Business Process Re-engineering
AI Services +
AI & Machine Learning AIOps Intelligent Automation Business Intelligence & Analytics AI Installation & Compute
Infrastructure Management +
Cloud Setup Cloud Migration Managed Cloud Services Server & Hosting Cost Optimization Performance Optimization Outsourced Support
DevOps & Automation Services +
CI/CD Setup Kubernetes & Docker Infrastructure as Code Cloud-Native Migration DevSecOps
Cybersecurity & Compliance Services +
Security Hardening VAPT Incident Response Backup & DR

© 2026 Bobcares. All Rights Reserved.

  • Careers
  • |
  • Cookie Policy
  • |
  • GDPR
  • |
  • Privacy Policy
  • |
  • Terms and Service
  • LinkedIn
  • YouTube
  • Instagram
  • Facebook

Preview of the new Bobcares experience
NEW UPDATE
See What’s New
at Bobcares

Discover a faster, clearer view of our services and expertise.


Explore the New Experience
Arrow Right