Okay, let's break down why Arkenfox might be "forgetting" session cookies and how to address it using the override file, plus the role of Firefox Containers.
Why Arkenfox "Forgets" Session Cookies
Arkenfox is designed for privacy and security hardening. One common technique to reduce tracking is to limit the lifespan of cookies. By default, Arkenfox often configures Firefox to:
- Clear Cookies on Shutdown: It sets preferences to delete cookies (and other site data) when you close Firefox entirely.
- Treat Many Cookies as Session-Only: It might set the default cookie lifetime policy to expire cookies when the session ends (which often means when the browser closes), even if the website intended the cookie to last longer.
This is intentional behavior to prevent persistent tracking, but it has the side effect of logging you out of websites.
How to Fix it Using the Override File (user-overrides.js)
You need to decide how you want to retain cookies. Here are the main approaches, using your user-overrides.js file (which you should create in your profile's root directory if it doesn't exist). Remember to restart Firefox after adding/modifying overrides.
Method 1: Stop Clearing Cookies on Shutdown (Less Private)
If you want to keep cookies between browser sessions (closing and reopening Firefox), you need to prevent Firefox from clearing them on shutdown.
Method 2: Change Default Cookie Lifetime Policy (Generally Not Recommended)
Arkenfox often sets network.cookie.lifetimePolicy to 2 (accept for session only). You could change this back to Firefox's default (0 - accept normally), but this significantly weakens privacy.
Method 3: Use Firefox's Built-in Site Exceptions (Recommended)
This is the most balanced approach. Keep Arkenfox's strict defaults but explicitly allow specific, trusted websites to store persistent cookies.
Does Firefox Containers Matter?
- Isolation, Not Persistence: Firefox Containers (Multi-Account Containers) isolate cookies, local storage, etc., between containers. A cookie set in your "Work" container is not visible in your "Personal" container.
- No Override of Clearing Rules: Containers do not override the underlying cookie lifetime or clearing rules set by
about:config preferences (which Arkenfox modifies). If Arkenfox is set to clear all cookies on shutdown, it will clear cookies from all containers. If it treats cookies as session-only, they will be session-only within each container (unless overridden by a site exception).
In summary: Containers are great for separating identities on different websites but do not inherently fix the problem of Arkenfox clearing session cookies or treating them as session-only. The fix needs to happen at the preference level (using overrides or exceptions) as described above.
Recommendation:
- Start with Method 3 (Site Exceptions): This maintains the most privacy while allowing specific sites to work as needed. Manage exceptions via Firefox Settings.
- Ensure Exceptions Aren't Cleared: If needed, add
user_pref("privacy.clearOnShutdown.siteSettings", false); to your user-overrides.js.
- If you absolutely need all cookies to persist between sessions (less private): Use Method 1 (
user_pref("privacy.clearOnShutdown.cookies", false);).
- Avoid Method 2 unless you fully understand the privacy implications.
Remember to restart Firefox after modifying user-overrides.js.