How do I detect if a cookie exists?
My cookie is created like this:
setcookie("log", "true", time()+60, "/classes");
And to detect I'm trying this:
if (!isset($_COOKIE['log'])) {
//função
}
But it does not detect the cookie, it r...
asked by
12.09.2016 / 19:12