Skip to content

Cookie Management Best Practices #1228

Answered by frankie567
hdmoreland asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hdmoreland 👋

Thank you for your clear and complete question. Here are my thoughts:

If your goal is simplicity, I would suggest to implement only one cookie mechanism. Many websites nowadays implicitly remember the user by using a cookie without the Remember me checkbox.

Now, to answer your questions:

  • Is 30 days longer than preferred for a lifetime_seconds value? Is my method here a poor security practice?

It depends on the criticality of your application and sensitivity of the actions/data your users will manipulate. 30 days seems a bit long to me, but you should consider the trade-off between security and usability. Personally, I usually set this to 7 days.

  • Should I configure a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hdmoreland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants