Jump to content

verifier mes cookie


Recommended Posts

salut, je vient de cree mon propre cookie et mainteant je veut implementer mon propre fonction pour verifier le cookie.

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



et dans le fonction isLogged() j'ai ajouter

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



mais sa ne semble pas marcher et fait des etincelles... pouvez vous m'aider

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