setcookie

From: Date: Mon, 20 Nov 2000 10:26:53 +0000
Subject: setcookie
Groups: php.general 
Request: Send a blank email to php-general+get-26339@lists.php.net to get a copy of this message
hi there, I am trying to set a cookie. I have never done this before but it is not working. I know the script is working as I have a little piece of code that should set two cookies and then set the header to my welcome page if the authentication is successful. The header information works but the cookies never get set. this is the code snippit. else { setcookie("cookie_p",$md5password); setcookie("cookie_u",$uname); header("Location:http://mysite.com/welcome.php?uname=$uname"); exit(); } Thanks Ken -- I've got all the money I'll ever need if I die by 4 o'clock. -- Henny Youngman

« previous php.general (#26339) next »