[thelist] deleting a JS cookie

Tom Dell'Aringa pixelmech at yahoo.com
Thu Dec 19 09:22:01 CST 2002


I am setting this cookie:

document.cookie = "groom=<?=$groom?>; expires=Wdy, 01-Mon-2010
12:12:12 GMT; path=/";

Then, to delete it I am trying:

document.cookie = "groom=nothing; path=/; expires=Thu, 01-Jan-70
12:00:01 GMT";

This doesn't work, it sets it to 'nothing' even with the date at
1970. Is there a better way, what mistake am I making?

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the thelist mailing list