Cookie Problem in Firefox
Posted: Fri Aug 03, 2007 4:18 pm
I've been having a PHP problem, and I guess it warrants a question for the Gurus.
I have found that I can easily set a cookie:
No problem. I cannot, however, seem to get my cookie to be UNset. I only have this problem when I use Firefox. Internet Explorer sets unsets cookies like a dream, however cookies set in Firefox won't go away until they've expired, and it's driving me crazy.
I've attempted all of the following methods:
Thanks for any insight.
~Andrew
I have found that I can easily set a cookie:
Code: Select all
setcookie("cookiename", "", exptime);I've attempted all of the following methods:
Code: Select all
setcookie("emailAddress", "", time()-86400);
setcookie("emailAddress", "", time()-9999999999999999999999999999999999999999999999999); //(Exaggeration)
session_destroy();
setcookie("emailAddress" ,"",0,"/");~Andrew