Deleting existing cookies in Internet Explorer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #1

    Deleting existing cookies in Internet Explorer

    I was given some code for a web app that needs to remove an existing cookie. The code does "Set-Cookie" and sets an expiration date in the past so the cookie gets removed. This works in all the modern browsers but I can't find my note about the bug in IE where this doesn't work.

    Does someone know how to immediately expire an existing cookie in IE? Currently the code does this:
    Set-Cookie: stat=12345; expires=01-01-2009; path=/; domain=example. com"

    I tried adding the time but and some other things but it still doesn't work.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Ah, never mind. The problem actually relates to IEs long standing #$%^& bug in handling <button> where it's sending the wrong data when you click on the button and helping it maintain its lead as the worst browser on the planet.

    Comment

    Working...