Why Doesn't Closing A Tab Delete A Session Cookie?

后端 未结 5 1748
野性不改
野性不改 2020-11-29 13:15

I\'m using session-based cookies with my website. To my complete surprise, I noticed if I set a session cookie (not a persistent cookie), close a tab, and then reconnect to

5条回答
  •  余生分开走
    2020-11-29 13:36

    The session cookie is per-process not per window. So even if you selected New Window you'd still get the same session id. This behavior makes sense. You wouldn't want a user to re-sign in each time they opened a new window while browsing your site.

    I'm not aware off hand of any real way around this.

提交回复
热议问题