I have the code:
$user_cookie = hash("sha512",$username);
$salt1 = hash("sha512", rand() . rand() . rand());
setcookie("c_user", $user_cookie, time() + 12 * 60 * 60, "/");
setcookie("c_salt", $salt1, time() + 12 * 60 * 60, "/");
On localhost it works fine but on webserver doesn't work. I can't understand, why? This code is included in if and all other code from this if works but this-no. If I write echo $user_cookie."\n".$salt1;
I have these values!