By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,715 Members | 1,219 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,715 IT Pros & Developers. It's quick & easy.

Display when a cookie expires

P: 1
Is it possible to display when a cookie expires? Like example you can see at my page trough JavaScript that the cookie will expire in 1 hour.
Jul 20 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,390
i dont know of a way to read the cookie's expiration date - but in case you set the cookie for yourself you could workaround it by setting the expiration date even as key-value-pair in the cookie or even another cookie when the cookie is created - so that you can read it back later on.
Jul 23 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.