How do I get back the expires value of a cookie?
... alert(document.cookie.expires) ...
Jean Pierre
You don't, Jean Pierre
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)
> How do I get back the expires value of a cookie?
As far I know, you can't. Once the browser has the cookie, the expires (or
Max-Age) value becomes internal: it's only used to decide if the cookie
should be returned when requested.
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Thanks
Jean
"Michael Winter" <M.Wi...@blueyonder.co.invalid> a écrit dans le message de
news:opsdssnkiix13kvk@atlantis...
> On Fri, 3 Sep 2004 18:39:08 -0400, QuCec <On...@WasEno.ugh> wrote:
>
>> How do I get back the expires value of a cookie?
>
> As far I know, you can't. Once the browser has the cookie, the expires
> (or Max-Age) value becomes internal: it's only used to decide if the
> cookie should be returned when requested.
>
Which does not mean you cannot include a copy of the the expiry date as a
string in a cookie key.
Jean
"Evertjan." <exjxw.ha...@interxnl.net> a écrit dans le message de
news:Xns955AB47C...@194.109.133.29...
> Michael Winter wrote on 04 sep 2004 in comp.lang.javascript:
>
> Precisely
>
> Jean
[topposting corrected, please do not toppost on usenet]
It always feels good, Jean Québec, when someone agrees with me.