Anyone wanna confirm this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Krucifyx
    Senior Member
    • Jun 2000
    • 115

    Anyone wanna confirm this?

    When I set a cookie of a life span of 0 (meanings the contents are gone when you leave the site/close browser), there doesn't seem to be an actual cookie written to the disk. I was wondering if this was just happening to me, or if anyone else has noticed this? Reason I'm asking is because I store the users id in the cookie instead of having to retrieve it from the database every page visit (database version comparies IP to a registered session to acquire members id), but I'm leaning towards the database check version if the cookie scenario is only a selective event.
  • Freddie Bingham
    Former vBulletin Developer
    • May 2000
    • 14057
    • 1.1.x

    #2
    Setting the cookie timeout to 0 creates a "Session cookie" which isn't stored on the hard drive. You can still access it like a normal cookie but it will vanish when the user closes their browser.

    Comment

    • Krucifyx
      Senior Member
      • Jun 2000
      • 115

      #3
      Excellent. Wasn't aware if that was a feature of the recent generation of IE/NS.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...