locked
Cookie does not expire at the end of the session RRS feed

  • Question

  • User-1939321229 posted

    I am using cookies in my app and I want it to expire when the browser closes.  In order to do that whenever I create the cookie I dont set an expiry date and I think this should remove the cookies when the browser closes.  This works fine on Chrome and FireFox, however on IE9 this does not get removed.  When I view the cookie information using the developer toolbar I see the following for the cookie I am interested in

    NAME User Registration Cookie
    VALUE c30cee20-bef5-4f59-9878-f8af30bc7979
    DOMAIN hps4173
    PATH /
    EXPIRES At the end of the Session

    However this does not expire.  Any idea anyone?

    Tuesday, July 3, 2012 10:05 AM

Answers

  • User-1939321229 posted

    Ok, it seems like there was a hidden IE process running which avoided the cookies being cleared.  When I closed the processes it worked fine.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 3, 2012 2:45 PM

All replies

  • User1779161005 posted

    Are you making sure you close all IE windows? IE (and most modern browsers) share cookies across all their windows.

    Tuesday, July 3, 2012 10:18 AM
  • User-1939321229 posted

    Ok, it seems like there was a hidden IE process running which avoided the cookies being cleared.  When I closed the processes it worked fine.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 3, 2012 2:45 PM