Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cookie expiring date

0 views
Skip to first unread message

Québec

unread,
Sep 3, 2004, 6:39:08 PM9/3/04
to
Hi,

How do I get back the expires value of a cookie?
... alert(document.cookie.expires) ...

Jean Pierre


Evertjan.

unread,
Sep 4, 2004, 4:36:06 AM9/4/04
to
Québec wrote on 04 sep 2004 in comp.lang.javascript:
> How do I get back the expires value of a cookie?
> ... alert(document.cookie.expires) ...

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)

Michael Winter

unread,
Sep 4, 2004, 6:26:38 AM9/4/04
to
On Fri, 3 Sep 2004 18:39:08 -0400, Québec <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.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.

Québec

unread,
Sep 4, 2004, 9:47:12 AM9/4/04
to
So, I will write it has a cookie info in an array.

Thanks

Jean
"Michael Winter" <M.Wi...@blueyonder.co.invalid> a écrit dans le message de
news:opsdssnkiix13kvk@atlantis...

Evertjan.

unread,
Sep 4, 2004, 11:44:27 AM9/4/04
to
Michael Winter wrote on 04 sep 2004 in comp.lang.javascript:

> 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.

Québec

unread,
Sep 4, 2004, 5:35:44 PM9/4/04
to
Precisely

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:
>

Evertjan.

unread,
Sep 5, 2004, 4:35:09 AM9/5/04
to
Québec wrote on 04 sep 2004 in comp.lang.javascript:
> "Evertjan." <exjxw.ha...@interxnl.net> a écrit dans le message de
>> Which does not mean you cannot include a copy of the the expiry date
>> as a string in a cookie key.

> Precisely
>
> Jean

[topposting corrected, please do not toppost on usenet]

It always feels good, Jean Québec, when someone agrees with me.

0 new messages