Took over an ecommerce project running PrestaShop 1.3.
The BackOffice’s unexplained admin login time-out issue was driving me crazy. Tried many solutions to optimise the various settings to no avail. Finally found this solution below which finally worked.
Solution discovered by http://www.gibni.com/solved-prestashop-backoffice-login-refresh
Steps here:
In the file “login.php” under your BackOffice’s folder, on line 55, you have:
$cookie = new Cookie(‘psAdmin’, substr($_SERVER[‘PHP_SELF’], strlen(__PS_BASE_URI__), -10));
where the “-10″ value corresponds to the number of letters of “prestashop”, set it to the number of letters of your store’s sub-directory name and your will be back in business again.
For example:
if your store is located at: http://www.yourdomain.com/store/
the word “store” contains 5 letters, so the line 55 in login.php should become:
$cookie = new Cookie(‘psAdmin’, substr($_SERVER[‘PHP_SELF’], strlen(__PS_BASE_URI__), -5));