Chrome doesn't delete session cookies

后端 未结 13 1926
有刺的猬
有刺的猬 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 06:11

    This maybe because Chrome is still running in background after you close the browser. Try to disable this feature by doing following:

    1. Open chrome://settings/
    2. Click "Show advanced settings ..."
    3. Navigate down to System section and disable "Continue running background apps when Google Chrome is closed". This will force Chrome to close completely and then it will delete session cookies.

    However, I think Chrome should check and delete previous session cookies at it starting instead of closing.

提交回复
热议问题