Jump to content

my own cookie verification


Recommended Posts

Hi, i waant to create my own cookie and i want Prestashop to detect it. So i added this method to Classes/cookie.php:


function myCookie()
   {
      if ($_COOKIE['TestCookie'] == "somethng")
      return true;
      return false;
   }



and under the is_logged function i added this:

if (myCookie AND $this->logged == 1 AND $this->id_customer AND Validate::isUnsignedId($this->id_customer) AND Customer::checkPassword(intval($this->id_customer), $this->passwd))  



However, the code seems to crash harshly with loud booms. Can somone please tell me what i am doing wrong. Thanks

Link to comment
Share on other sites

  • 3 weeks later...

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...