473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

cookie expiring date

Hi,

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

Jean Pierre
Jul 23 '05 #1
6 1413
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)

Jul 23 '05 #2
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.
Jul 23 '05 #3
So, I will write it has a cookie info in an array.

Thanks

Jean
"Michael Winter" <M.******@blueyonder.co.invalid> a écrit dans le message de
news:opsdssnkiix13kvk@atlantis...
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.

Jul 23 '05 #4
Michael Winter wrote on 04 sep 2004 in comp.lang.javascript:
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.


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)

Jul 23 '05 #5
Precisely

Jean
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de
news:Xn********************@194.109.133.29...
Michael Winter wrote on 04 sep 2004 in comp.lang.javascript:
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.


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)

Jul 23 '05 #6
Québec wrote on 04 sep 2004 in comp.lang.javascript:
"Evertjan." <ex**************@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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: HorseGeek | last post by:
I have three servers: Server1, Server2, and Server3. There is a login cookie does not expire for SOME users on Server2. Ironically, the login cookie expires correctly for ALL users on the...
7
by: What-a-Tool | last post by:
How does the expire date work setting it server side with asp. I know with javascript setting it client side it will be set to the clients local time, and therefore expire when the clients local...
3
by: Mike | last post by:
I have a web application that the forms authentication cookie is not expiring correctly. When I look at the trace information of a newly requested page after the session and forms authentication have...
1
by: Charlie | last post by:
Hi: Our portal writes a cookie to browser on login. The cookie is then requested by applications launched by portal as a way of passing credentials. The problem is when logging off portal,...
15
by: Edwin Knoppert | last post by:
I have searched but info is limitted. In my test app i used a non persistant cookie for forms authentication. slidingExpiration is set to true On run and close and rerun the login remains ok....
32
by: paul | last post by:
HI! I keep on getting this error and I have tried different things but I am not sure how to send the expiring date. The error that I am getting in Firefox 1.5 is "Error: expires.toGMTString is...
7
by: Adam Bates | last post by:
Hello, I have a problem, I have been using Cookie Authentication on the 1.1 framework for around 3 months, when I moved the site internally within my hosting company from a server with 1.1...
0
by: robert | last post by:
I have noticed in .net 2 that when authenticating a user, setting the cookie using either redirectfromloginpage or setauthcookie, specifying true for the persistent parameter that the cookie is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.