PrestaShop Documentation, PrestaShop Tutorials

PrestaShop admin login time increase

To increase the admin login session timeout in PrestaShop, you can modify the cookie lifetime settings.

Method 1: Change Session Lifetime in PHP

Edit your server’s php.ini file:

session.gc_maxlifetime = 86400
  • 86400 = 24 hours
  • Restart Apache/Nginx after making changes.

Method 2: Modify PrestaShop Cookie Lifetime

In newer PrestaShop versions (1.7/8), edit:

config/packages/framework.yaml

Look for:

framework:
    session:
        cookie_lifetime: 0

Change it to:

framework:
    session:
        cookie_lifetime: 86400

Then clear the cache:

php bin/console cache:clear --env=prod

or delete:

var/cache/prod/*
var/cache/dev/*

Method 3: Check Browser Cookie Settings

If you are logged out frequently:

  • Disable aggressive browser cookie cleaning.
  • Whitelist your store domain.
  • Ensure server time and browser time are correct.

Common Causes of Admin Logout

  • Low session.gc_maxlifetime
  • Reverse proxy/CDN caching admin pages
  • Changing IP addresses
  • Multiple admin tabs open
  • Server cache misconfiguration

 

About zohaibk

We develop useful addons for #E-Commerce and #CRM software to provide extra features.#PrestaShop,#Magento,#SugarCRM,#Vtiger & #Android #apps
View all posts by zohaibk →