I can not understand why the cookie is not displayed, in the browser in the page there is a cookie, and with very correct content (pass), but
var_dump($_COOKIE["pass"]);
Does NULL always show me?
if ($user->createUser()){ ob_start(); setcookie('email',$user->email,time()+14400,'/'); setcookie('pass','',time()-86400,'/'); $form = $success; } else $form = $regform; break; case "goodluck": /* Проверка соответсвия пароля */ if ($user->checkPass($_COOKIE[email],$_POST["pass"])){ ob_start(); // установка куки пасс setcookie('pass',$_POST["pass"],time()+86400,'/'); var_dump("cookie[pass]: ",$_COOKIE["pass"],"<br /><pre>"); print_r($_COOKIE); echo "</pre>";