XHanch Studio Log in | Register | Cart

Forum

Notifications
Clear all

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

XHanch
(@xhanch-alt)
Member Admin

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))
Quote
Topic starter Posted : 22/02/2012 11:26 am
Share:

× Close Menu