I have such situation: I do setcookie("bla",md5("bla"),time()+36000).
After this I do see this cookie in the browser but If I will write print_r($_COOKIE) on the server – there will be not exist cookie with key “bla”. Any ideas?
here is the listing:
setcookie("login_cookie",md5($result['user_password']."solt"),time()+36000);
setcookie("login_info",$result['user_id'],time()+36000);
header("Location:{$_SERVER['HTTP_REFERER']}");
exit();
Try the following (set the path argument to the root):
I have a feeling you’re going out to a different directory in the redirect which is why it’s not displayed, of course, I may be wrong.