Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Solved المُؤرشفة

Cookie set as session expire on close is not working properly.

Goutam Kumar Rana

Cookie set as session expire on close is working but if History Restore previous session is clicked the last page which was logged in shown by logging in successfully.

Cookie set as session expire on close is working but if History Restore previous session is clicked the last page which was logged in shown by logging in successfully.

All Replies (3)

When you reopen website automatically on a next start then Firefox will store cookies used in those tabs in the sessionstore.js file as part of saved session data, so you won't get logged off when you close Firefox without first closing those tabs.

  • Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

You can set the browser.sessionstore.privacy_level pref to 2 (never) or 1 (non-HTTPS) on the about:config page to disable saving cookies via session restore.

The browser.sessionstore.privacy_level_deferred pref is used when you do not reopen the previous session automatically via "Show my windows and tabs from last time" and uses the same values.

الحل المُختار

Thank You so much