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

技術支援討論區

Should "Show your windows and tabs from last time" option results in all session cookies being kept?

已張貼

I thought the following option only saved session cookies for the current tabs.

When Firefox starts: Show your windows and tabs from last time

But I have observed that it keeps session cookies for every tab I had opened that day. This basically means that the "Show your windows and tabs from last time" retains all session cookies you have ever had set for perpetuity. They will never be deleted.

Steps... don't use foo.bar.com as i don't know what is there

  • I have foo.bar.com open in a tab. it sets a session cookie.
  • I have 4 other sites open.
  • I close the foo.bar.com tab.
  • I close the browser
  • I assume the foo.bar.com cookie is gone
  • I open the browser and the 4 (non foo.bar.com) tabs reopen
  • I open a new tab and go to foo.bar.com.
  • I observe the session cookie being sent to foo.bar.com
I thought the following option only saved session cookies for the current tabs. When Firefox starts: Show your windows and tabs from last time But I have observed that it keeps session cookies for every tab I had opened that day. This basically means that the "Show your windows and tabs from last time" retains all session cookies you have ever had set for perpetuity. They will never be deleted. Steps... don't use foo.bar.com as i don't know what is there * I have foo.bar.com open in a tab. it sets a session cookie. * I have 4 other sites open. * I close the foo.bar.com tab. * I close the browser * I assume the foo.bar.com cookie is gone * I open the browser and the 4 (non foo.bar.com) tabs reopen * I open a new tab and go to foo.bar.com. * I observe the session cookie being sent to foo.bar.com
引用
cor-el
  • Top 10 Contributor
  • Moderator
17344 個解決方法 156782 個答案

有幫助的回覆

Firefox keeps an undo stack for the last 25 tabs in current Firefox releases (browser.sessionstore.max_tabs_undo, browser.sessionstore.max_windows_undo). I assume that cookies from closed tabs are stored as well to be able to reopen closed tabs.

  • History -> Recently Closed Tabs/Windows
Firefox keeps an undo stack for the last 25 tabs in current Firefox releases (browser.sessionstore.max_tabs_undo, browser.sessionstore.max_windows_undo). I assume that cookies from closed tabs are stored as well to be able to reopen closed tabs. *History -> Recently Closed Tabs/Windows
這篇文章有幫助嗎? 1
引用

提出問題者

This feels like a bad idea but it is probably what people who use the "Show your windows and tabs from last time" option want.

It makes life hard for developers who are trying to debug cookie issues and it results in conversations like this one.

"Did you restart your browser?" "Yes" "are you sure?" "Yes!, WTF, i'm not an idiot" .. in developer's head. "i clearly see the session cookie on the wire. this guy is an idiot"

When in fact, Firefox is just doing something that we wouldn't expect.

I would propose that when you restart your browser the undo feature is disabled.

This feels like a bad idea but it is probably what people who use the "Show your windows and tabs from last time" option want. It makes life hard for developers who are trying to debug cookie issues and it results in conversations like this one. "Did you restart your browser?" "Yes" "are you sure?" "Yes!, WTF, i'm not an idiot" .. in developer's head. "i clearly see the session cookie on the wire. this guy is an idiot" When in fact, Firefox is just doing something that we wouldn't expect. I would propose that when you restart your browser the undo feature is disabled.
這篇文章有幫助嗎?
引用
cor-el
  • Top 10 Contributor
  • Moderator
17344 個解決方法 156782 個答案

You can exclude the cookies from being part of session restore.

You can exclude the cookies from being part of session restore. *http://kb.mozillazine.org/browser.sessionstore.privacy_level
這篇文章有幫助嗎? 0
引用

提出問題者

I don't have control over other people's settings. This is more of a feature request I guess. If someone closes their browser they would not expect sessions for tabs that we're closed before closing Firefox to be active still.

If it is true that Firefox saves session cookies for recently closed tabs (or undo functionally), I would propose that those cookies be tossed on browser restart.

I don't have control over other people's settings. This is more of a feature request I guess. If someone closes their browser they would not expect sessions for tabs that we're closed before closing Firefox to be active still. If it is true that Firefox saves session cookies for recently closed tabs (or undo functionally), I would propose that those cookies be tossed on browser restart.
這篇文章有幫助嗎?
引用
問個問題

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