Québec wrote on 04 sep 2004 in comp.lang.javas cript:[color=blue]
> How do I get back the expires value of a cookie?
> ... alert(document. cookie.expires) ...[/color]
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)
On Fri, 3 Sep 2004 18:39:08 -0400, Québec <Once@WasEno.ug h> wrote:
[color=blue]
> How do I get back the expires value of a cookie?[/color]
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.
So, I will write it has a cookie info in an array.
Thanks
Jean
"Michael Winter" <M.Winter@bluey onder.co.invali d> a écrit dans le message de
news:opsdssnkii x13kvk@atlantis ...[color=blue]
> On Fri, 3 Sep 2004 18:39:08 -0400, Québec <Once@WasEno.ug h> wrote:
>[color=green]
> > How do I get back the expires value of a cookie?[/color]
>
> 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.[/color]
Michael Winter wrote on 04 sep 2004 in comp.lang.javas cript:
[color=blue]
> On Fri, 3 Sep 2004 18:39:08 -0400, Qu‚bec <Once@WasEno.ug h> wrote:
>[color=green]
>> How do I get back the expires value of a cookie?[/color]
>
> 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.
>[/color]
Which does not mean you cannot include a copy of the the expiry date as a
string in a cookie key.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)
Jean
"Evertjan." <exjxw.hannivoo rt@interxnl.net > a écrit dans le message de
news:Xns955AB47 C4E498eejj99@19 4.109.133.29...[color=blue]
> Michael Winter wrote on 04 sep 2004 in comp.lang.javas cript:
>[color=green]
> > On Fri, 3 Sep 2004 18:39:08 -0400, Qu,bec <Once@WasEno.ug h> wrote:
> >[color=darkred]
> >> How do I get back the expires value of a cookie?[/color]
> >
> > 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.
> >[/color]
>
> Which does not mean you cannot include a copy of the the expiry date as a
> string in a cookie key.
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress,
> but let us keep the discussions in the newsgroup)
>[/color]
Québec wrote on 04 sep 2004 in comp.lang.javas cript:[color=blue]
> "Evertjan." <exjxw.hannivoo rt@interxnl.net > a écrit dans le message de[color=green]
>> Which does not mean you cannot include a copy of the the expiry date
>> as a string in a cookie key.[/color][/color]
[color=blue]
> Precisely
>
> Jean[/color]
[topposting corrected, please do not toppost on usenet]
It always feels good, Jean Québec, when someone agrees with me.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)
Comment