Hey all -
I currently use cookies to log in users at the SiteCritique.net site (http://www.sitecritique.net).
The mechanism works (check it out if you want) by sending the login info to a page where the cookie is set, and then it is redirected to the users homepage.
For a while, some users have complained that they are redirected, yet the cookie is never set. I never noticed the problem myself, but did notice that all the users had Win2k and IE 5.5. Yesterday, I got a new computer with winXP and IE 6.0 - and I'm experiencing the problem.
Now - where is this error occuring, in my code, or in the browser. I suspect its in the code. IS there any documentation re: making cookies work on IE, or any documented bugs???
Thanks in advance,
Pete Czech
Founder, SiteCritique.net
PS: Here is the code for the redirect/cookie set page:
$exists = mysql_query("SELECT * FROM users WHERE username = '$username'", $db);
$row = mysql_fetch_array($exists);
if ($row["password"] == $password && $password != "") {
setcookie("squser", $username, time()+14400);
if (!isset($redir)) {
$redir = "/pages/critiques/userhome.php";
}