XHanch Studio Log in | Register | Cart

Forum

[Troubleshoot] Pres...
 
Notifications
Clear all

[Troubleshoot] Prestashop admin area keep getting logged out after logged in for a while

1 Posts
1 Users
0 Likes
1,196 Views
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
Topic starter
 

On recent development on Prestashop, I was getting the issue of keep getting log out at the admin page. It was like after few clicks after login, I was logout and request to login again.

After searching, here the solution on how to resolve it. You need to modify classes/Cookie.php. Find his line of code:

if ($this->id_employee AND Validate::isUnsignedId($this->id_employee) AND Employee::checkPassword(intval($this->id_employee), $this->passwd) AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long($_SERVER['REMOTE_ADDR'])))

And change it to:

if ($this->id_employee AND Validate::isUnsignedId($this->id_employee) AND Employee::checkPassword(intval($this->id_employee), $this->passwd))
 
Posted : 22/02/2012 11:26 am
Share:

× Close Menu