cookie expiring date

Q

Québec

Hi,

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

Jean Pierre
 
E

Evertjan.

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
 
M

Michael Winter

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
 
E

Evertjan.

Michael Winter wrote on 04 sep 2004 in comp.lang.javascript:
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.
 
Q

Québec

Precisely

Jean
Evertjan. said:
Michael Winter wrote on 04 sep 2004 in comp.lang.javascript:


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)
 
E

Evertjan.

Québec 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top