Cookies and browser limit RRS feed

  • Question

  • User-1224340785 posted

    Up to this point, I've been using Session state to identify users, but Session is lost when user restarts the browser. I'm currently cooking into storing userid as a cookie (encrypted) and store the rest in Session.

    I'd like to use a persistent cookie to identify a user (let's call it "userid").

    I will also use additional (non-persistent) cookies to store some information when user goes from page to page. I read here that browsers have a limit on how many cookies they store per domain (about 20) and if you put more, the oldest cookies are discarded.

    My question is: will it discard my persistent cookie or only non-persistent ones? I wouldn't want the browser to delete the "userid". Is there any way I can control that?

    Thursday, November 3, 2011 5:22 PM


  • User-451260051 posted

    "will it discard my persistent cookie" Yes.

    "Is there any way I can control that?" No.

    Unfortunately, you are at the mercy of the browser.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, November 3, 2011 8:54 PM

All replies