SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cookie trouble in IE

    I'm using the following line to delete cookies. It works great in Firefox, but in IE the cookie still exists, it's just lost all of its data. I can check to see if the data is there, and ignore the cookie if it isn't, but since I'm looping through my cookies when the page builds, I rather it be completely removed.


    Code:

    document.cookie = name + "=noop; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=" + path;

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    I doubt that it will be possible to script the removal of the cookie from IE.
    What you have there is enough to empty the contents of your cookie, which is good enough for the scripting task at hand.

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ok let me delete it

    Let Me delete the contents of the cookie.thanks for the support


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •