Skip to content
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

set cookie expiration #803

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

set cookie expiration #803

wants to merge 1 commit into from

Conversation

carchrae
Copy link
Contributor

@carchrae carchrae commented Feb 1, 2021

a quick fix for #802

caveat - i have not tested this on the master branch (rails 5) but it works on my fork which uses rails 4.2

@wvengen
Copy link
Member

wvengen commented Feb 3, 2021

Thanks for the PR! While this would be better with 'continue where I left off', doesn't this make it a non-session-cookie, hence keeping the cookie when the browser window is closed with standards-like behaviour?

@carchrae
Copy link
Contributor Author

carchrae commented Feb 3, 2021

a session cookie is simply one with no expiry set. (and that behaviour can be different as mentioned in the issue). this pr just sets an expiry of one year.

it is contentious because maybe some user will not want that behaviour (eg, they want to have to log in), but frankly i don't see many strong arguments for that as a default. this change will mean you have to click log out to log out.

@wvengen
Copy link
Member

wvengen commented Feb 3, 2021

Ok, fair enough, thanks for explaining.
If anyone has an opinion on this, please join in, otherwise I'd be favoured to merging this after some time.

@paroga
Copy link
Member

paroga commented Feb 4, 2021

i'm ok with adding a "remember me" option, but i don't think that a session cookie should have an expire date, regardless what browsers do. i don't like this to get merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants