-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get logins to save between sessions [solved: offlineApps sanitizing] #1291
Comments
^^^ Did you set this? |
EDIT sorry, misread that as something else |
already replied in the other one, at least this one is more readable from the other issueportable works just fine. I can't read through that mess above and that amount of overrides is obsessive and not needed. It is not enough to just keep replacing overrides, you should make sure everything is reset in about config as well New profile. Add arkenfox, Add session restore overrides recipe
/* override recipe: enable session restore ***/
user_pref("browser.startup.page", 3); // 0102
// user_pref("browser.privatebrowsing.autostart", false); // 0110 required if you had it set as true
// user_pref("places.history.enabled", true); // 0862 required if you had it set as false
user_pref("browser.sessionstore.privacy_level", 0); // 1003 optional [to restore cookies/formdata]
// user_pref("network.cookie.lifetimePolicy", 0); // 2801 [don't: add cookie + site data exceptions instead]
user_pref("privacy.clearOnShutdown.history", false); // 2811
// user_pref("privacy.clearOnShutdown.cookies", false); // 2811 optional: default false arkenfox v94
// user_pref("privacy.clearOnShutdown.formdata", false); // 2811 optional
user_pref("privacy.cpd.history", false); // 2812 to match when you use Ctrl-Shift-Del
// user_pref("privacy.cpd.cookies", false); // 2812 optional: default false arkenfox v94
// user_pref("privacy.cpd.formdata", false); // 2812 optional Keep login cookies - add exceptions for cookies you want to keep as /* 2801: delete cookies and site data on exit
* 0=keep until they expire (default), 2=keep until you close Firefox
* [SETTING] Privacy & Security>Cookies and Site Data>Delete cookies and site data when Firefox is closed
* [SETTING] to add site exceptions: Ctrl+I>Permissions>Cookies>Allow
* If using FPI the syntax must be https://example.com/^firstPartyDomain=example.com
* [SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Settings ***/
user_pref("network.cookie.lifetimePolicy", 2); These work |
note we will be changing from FPI to dFPI so when that happens in FF96, you will need to change your cookie + site exceptions, see #1281 |
rusty, 1003 can be made active in the recipe, since we clear cookies and form data anyway |
Thanks for the quick and detailed responses. I've got it saving sessions, but it still won't save my logins. To be clear, what I'm wanting is to login to a site, close the browser, open it later and still be logged into the site. I started with a fresh Firefox Portable install (from here). I added the Arkenfox user.js then created a new user-overrides.js with only the following: /* override recipe: enable session restore ***/
user_pref("browser.startup.page", 3); // 0102
user_pref("browser.privatebrowsing.autostart", false); // 0110 required if you had it set as true
user_pref("places.history.enabled", true); // 0862 required if you had it set as false
user_pref("browser.sessionstore.privacy_level", 0); // 1003 optional [to restore cookies/formdata]
// user_pref("network.cookie.lifetimePolicy", 0); // 2801 [don't: add cookie + site data exceptions instead]
user_pref("privacy.clearOnShutdown.history", false); // 2811
// user_pref("privacy.clearOnShutdown.cookies", false); // 2811 optional: default false arkenfox v94
// user_pref("privacy.clearOnShutdown.formdata", false); // 2811 optional
user_pref("privacy.cpd.history", false); // 2812 to match when you use Ctrl-Shift-Del
// user_pref("privacy.cpd.cookies", false); // 2812 optional: default false arkenfox v94
// user_pref("privacy.cpd.formdata", false); // 2812 optional Then I ran updater.bat. These overrides are not saving my logins between sessions. Here are my cookie + site exceptions for the two sites I tested with: Sorry to be so dense on this. I cannot figure out what I'm doing wrong. |
Question if you add |
some sites like to store login info outside of a cookie so try adding these user_pref("privacy.clearOnShutdown.offlineApps", false);
user_pref("privacy.cpd.offlineApps", false); I think @fxbrit has had a few users report that at Librewolf (who uses the same settings). fxbrit, maybe we should relax those back to default as per LW used to have it - if you're retaining a cookie via site exception, I don't see the issue: I just thought the sanitizing would be more robust - but if it breaks the intended affect of staying logged in, then we should revert that part |
Those two offlineApps settings were the key. Without them Github would not save my login. After adding them it saves all my logins. Thank you! |
Good to know. Do the other ones work - yahoo mail and feedly ? edit: closing, but do let us know if the other sites are working, and thanks for testing 🍻 Also be aware that some sites (e.g. banks, will only set session cookies: a site exception as |
- in v94 we switched to cookies lifetime as session, so users could use site exceptions to retain selected cookies (to stay logged in one assumes) - that mean not deleting all cookies on shutdown - but some login methods/types require more than cookies and also need the "site data" part of "cookies + site data" - that's the offlineApps part - note: all site data (and cookies) is still cleared on close except site exceptions
Yes, ALL logins are saved as I expect. Ihaven't tried banks yet, but I understand those won't persist and that's a good thing. Thanks again for all your help! |
yes, it seems like a win-win situation. |
things have changed, offlineApps now respects exceptions, which is how we do it |
browser version:
Firefox Portable 94.0.2
Steps to Reproduce (STR)
click me for details
actual result
I have to login again
expected result
I am already logged in when I go to feedly.com
I'm embarrassed to say that I've spent a solid 3 hours trying to figure this out. The most relevant thing I could find when searching was this. I tried to follow everything and test what was shared there, but no luck. Clearly the main issue here is ignorance and it seems like Firefox Portable does not behave like non-portable.
Any help on crafting a user-overrides.js that does session restore and saves my logins between session in Firefox Portable would be greatly appreciated.
The text was updated successfully, but these errors were encountered: