X
點擊此處開啟此網站的行動版。

技術支援討論區

Session cookies persist after browser closed

已張貼

I use a web page that stores session cookies to handle authorization. Once I found it does not ask authorization after a weeks since last one. Cookies view shows one with authorization token with Expires: Session setting. Is it a bug?

Also browser does not clear opened tabs if was not closed manually, but with the system shutdown. Otherwise tabs are cleared OK. Session cookies are not cleared both ways.

Such behaviour appeared near a December 2019, after some Firefox update. How can I fix cookies problem, and if related tabs problem too?

I use a web page that stores session cookies to handle authorization. Once I found it does not ask authorization after a weeks since last one. Cookies view shows one with authorization token with Expires: Session setting. Is it a bug? Also browser does not clear opened tabs if was not closed manually, but with the system shutdown. Otherwise tabs are cleared OK. Session cookies are not cleared both ways. Such behaviour appeared near a December 2019, after some Firefox update. How can I fix cookies problem, and if related tabs problem too?

由 s3r6 於 修改

引用
cor-el
  • Top 10 Contributor
  • Moderator
17764 個解決方法 160655 個答案

You need to logout properly to clear the session ID on the server and close tabs when you exit/quit Firefox because otherwise this session data (cookies) is stored in sessionstore.jsonlz4 and restored on the next start. Letting Windows close the browser will even more likely cause such issues because you aren't closing the session, so session cookies do not expire.

You need to logout properly to clear the session ID on the server and close tabs when you exit/quit Firefox because otherwise this session data (cookies) is stored in sessionstore.jsonlz4 and restored on the next start. Letting Windows close the browser will even more likely cause such issues because you aren't closing the session, so session cookies do not expire.
這篇文章有幫助嗎? 0
引用

提出問題者

cor-el said

otherwise this session data (cookies) is stored in sessionstore.jsonlz4 and restored on the next start

This violates Expires cookies contract. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

As I described such behaviour introduced about 2 months ago, so it should be considered as bug.

''cor-el [[#answer-1282418|said]]'' <blockquote>otherwise this session data (cookies) is stored in sessionstore.jsonlz4 and restored on the next start</blockquote> This violates ''Expires'' cookies contract. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie As I described such behaviour introduced about 2 months ago, so it should be considered as bug.
這篇文章有幫助嗎?
引用

提出問題者

Any developers can comment here? Or I should open ticket on bugtracker instead?

Any developers can comment here? Or I should open ticket on bugtracker instead?
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題