Forum
Notifications
Clear all
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