-
Notifications
You must be signed in to change notification settings - Fork 23
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
Default-Method isn't temporary, but persistent #14
Comments
Also, it might be nice to document that the "persistent" - option also leads to session variables being shared across browser windows/tabs. That is implied by using localstorage, but that makes the behaviour differ from the default session in two major ways (persistent across reloads + shared between windows), not only one. |
Agreed, it appears the docs are incorrect. I was just bit by this as well. |
Thanks @DanielDornhardt and @nickw, and sorry for the slow reply. We'll fix it! |
I tend to think it should be as the docs say, which will actually be a breaking change, what do you think @rgould? Definitely should bump the major version # then. |
@pauldowman yeah, that was my expectation as well. |
This should be fixed by df73869, which has been released now. Reopen this if the issue persists! |
Thank you! |
Hi, this just bit me - maybe I just misunderstood the docs, which say:
To define the default type for session variables, set persistent_session.default_method to your preferred type in your config/settings.json file:
persistent_session.default_method can take one of the following values:
persistent
authenticated
In any other case the default_method will fall back to temporary
While in the code it is:
https://github.com/okgrow/meteor-persistent-session/blob/master/lib/persistent_session.js
The text was updated successfully, but these errors were encountered: