Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bsoqk
· 1mo ago · 0 comments
How long should a cookie you expect to last forever actually last?
Comments
[–]
pixelatedindex
1mo ago
Why should it last forever?
[–]
bsoqk
OP
1mo ago
Because when you log in you don’t want to be logged out at (what, for you, will appear to be) a random time of the future.
[–]
verandaguy
1mo ago
The solution here is a "keep me logged in for 30 days" or "remember me for 7 days" label on the checkbox, not a forever cookie.
[–]
rpdillon
1mo ago
That solves "random" but not "I don't wanna type my password every week".
[–]
bsoqk
OP
1mo ago
That’s a solution for a problem that doesn’t exist. Nobody considers not getting logged out randomly a problem.
[–]
lokar
1mo ago
You think login.gov (Medicare, social security, tsa, irs, etc) should leave people logged in forever?