Jump to content

[SOLVED] Prestashop keep asking for username and password on every link clicked


Recommended Posts

I searched the forum and saw someone turn off IP checking of cookies.

I've already did that for both Chrome and Safari, but it's not working.

I also amended the isLoggedBack() on cookie.php by making the fourth condition a comment:

 

AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()) OR !Configuration::get('PS_COOKIE_CHECKIP'))

 

Is there anything else I can do to make the login go away?

Edited by gogosng09 (see edit history)
Link to comment
Share on other sites

  • 1 year later...

I'm not sure what kind of security the IP check is supposed to bring, but it causes problem with IPv6. I have a server that has both an IPv4 and an IPv6 address. From one connexion to the next, I may be switching between the IPv4 and IPv6 route (i.e. it sometimes sees my IPv4 address for one page load, and my IPv6 address for the next one). Each time is seen as an IP change and causes the login prompt to reappear. This seems bogus.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...