: : : : I'm recreating the cookie and setting the expires date to 12-31-
: : : : 1970. Works wonderfully in Mozilla and Netscape, but IE seems to
: : : : just ignore the new cookie and holds on to the old one. i've noticed
: : : : Konqueror in Linux does the same thing.
: : : I wonder if they don't like the prior date. Try setting them to empty and not specifying a date.
: : :
: : : Jonathan
: : So, instead of setting an expires date in the past just reset the
: : values in the cookie to null, or "" ( empty string )? I'll give that
: : a shot and see what happens, but I'm don't understand why that
: : would "delete" the cookie. Any thoughts? I'm still somewhat new to
: : cookies. I know making them is a breeze using CGI::Cookies, but that
: : mod doesn't appear to provide a real clear way of getting rid of
: : them when you're done with them. For this particular app that is a
: : must.
: Sorry it's been a while...I got sick.
Setting the cookie value to empty and not specifying a date should immediately remove any data stored in the cookie, and also turns it into a session cookie so it is destroyed when the browser is closed. I know that doesn't provide immediate deletion, mind.
: Other suggestions I've heard are to set expires to now; the prior date thing doesn't seem to be working for you, which is curious as in theory it should.
No problem about how long. Hope you're feeling better.
Actually the part about setting it to a prior date in history works great if the user is running Mozilla or Netscape, but if the user is running Internet Explorer deleting the cookie appears to be being totally ignored. As though IE refuses to let go of the cookie. Thats why I was wondering if when you're programming and using cookies one would have to make special methods to deal with cookies and Internet Explorer.
It really pains me that they don't follow the W3C web coding standards and just take off in their own direction.