I know that I can set expiration date for a cookie, but can I make a cookie expire after some time OR when browser is closed?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you set an expiration date, this will set them to expire on that date, whether the browser is open or closed.
Only non persisted cookies will expire once the browser is closed.
See cookie expiration rules on wikipedia.