I'm working with a script that includes a remember-login cookie. However, I'm having trouble killing the cookie.
Under normal conditions the cookie contains a hash plus expiry of two weeks later:
Here's the relevant logout code
COOKIE_NAME is a correctly-defined constant. I'm really not sure if the unset() does anything directly associated with the cookie, but figured it didn't hurt.
Anyway, as for the problem: Works fine in IE/Win and FF/Win. Doesn't work with Safari/Mac. Unfortunately, I don't have a Mac box to test on.
Any thoughts?
Under normal conditions the cookie contains a hash plus expiry of two weeks later:
Code:
setcookie(COOKIE_NAME, md5($login_string), time() + 3600*24*14);
Here's the relevant logout code
Code:
ob_start();
setcookie(COOKIE_NAME, "", 10); // timeout in 1970
unset($_COOKIE[COOKIE_NAME]);
ob_end_flush();
Anyway, as for the problem: Works fine in IE/Win and FF/Win. Doesn't work with Safari/Mac. Unfortunately, I don't have a Mac box to test on.
Any thoughts?