Chrome doesn't delete session cookies

后端 未结 13 1693
有刺的猬
有刺的猬 2020-11-22 05:25

I\'m trying to set session cookie in javascript like this:

document.cookie = \'name=alex; path=/\'

But Chrome doesn\'t delete it even if I

13条回答
  •  误落风尘
    2020-11-22 05:49

    I just had this issue. I noticed that even after I closed my browser I had many Chrome processes running. Turns out these were each from my Chrome extension.

    Under advanced settings I unchecked 'Continue running background apps when Google Chrome is closed' and my session cookies started working as they should.

    Still a pain in the rear for all of us developers that have been coding expecting that session cookies would get cleared when the user is done browsing.

提交回复
热议问题