Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
107
rated 0 times [  108] [ 1]  / answers: 1 / hits: 146391  / 14 Years ago, sun, july 18, 2010, 12:00:00

Is it possible to retrieve the creation or expiration date of an existing cookie from javascript? If so how?


More From » cookies

 Answers
86

The information is not available through document.cookie, but if you're really desperate for it, you could try performing a request through the XMLHttpRequest object to the current page and access the cookie header using getResponseHeader().


[#96192] Thursday, July 15, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
collinarnoldp

Total Points: 10
Total Questions: 122
Total Answers: 109

Location: Spain
Member since Thu, Dec 23, 2021
2 Years ago
collinarnoldp questions
;