views:

371

answers:

1

Is it possible to read cookie expiration date using javascript ?

if yes how ? if not is there a source i can look at.

Thanks

+4  A: 

It is not possible to get the expiration date of a cookie through Javascript; only key-value pairs are exposed through document.cookie.

Daniel Vandersluis
Yep - after it's been set, the expiry date is opaque; it will appear in document.cookie until its expiry, at which point it will stop.
Andrzej Doyle