Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lurch3469yThey get a new session, and their unique settings return to their defaults. No biggie; and I mean, if you delete all browser cookies, you should know you were taking that risk. -
Any reason you could update the expiration date when they logged in each time?
Or first load?
I guess this does require them visiting often though
Maybe implement both 😋 -
lurch3469y@itsdaniel0
That's actually a really good point. And I'd hope it would work and people would be logging in more frequently than every 68 years...
Related Rants

Coworker's whiteboard today
I hate code imperfections. I have a cookie which is linked to a permanent user setting and I was looking to make it infinite, but I was disappointed to find out the best option is Cookie.setMaxAge(int seconds), so I put Integer.MAX_VALUE, and I'm not as disappointed anymore.
undefined
imperfections
java
cookie
httpservletresponse