Reading Cookie Expiration
From: Mike Reed
Date Posted: 2/10/2006 9:02:00 AM
I must be having a "senile" day! I cannot recall, nor get to work, code
to read a cookie's expiration date/time in an ASP page/VBScript.
What am I missing?
Re: Reading Cookie Expiration
From: Evertjan.
Date Posted: 2/10/2006 9:10:00 AM
Mike Reed wrote on 10 feb 2006 in comp.lang.javascript:
I must be having a "senile" day! I cannot recall, nor get to work, code
to read a cookie's expiration date/time in an ASP page/VBScript.
What am I missing?
Nothing.
A cookie sits on the client.
Cann't even be done from a browser script,
and certainly not with server script..
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: Reading Cookie Expiration
From: Mike Reed
Date Posted: 2/10/2006 9:35:00 AM
Servers can read client cookies! There would be little reason for a
server to set a cookie if it couldn't read it back. I'm referring to
cookies my server set, and is readingcback. I want to access the
"expires" value of those cookies.
I all but positive I've read the "expires" value with server-side
VBScript in the past. I just cannot recall the syntax, nor can I find it
in any references.
Re: Reading Cookie Expiration
From: Evertjan.
Date Posted: 2/10/2006 9:40:00 AM
Mike Reed wrote on 10 feb 2006 in comp.lang.javascript:
Servers can read client cookies!
Please always quote on usenet!
This is not private email.
Others could want to follow and comment.
===============
Servers cannot read the client as such.
Servers can only read what the client browser sends to the server.
The Cookie string is sent in the page request.
Cookie expiration date is not sent.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: Reading Cookie Expiration
From: Mike Reed
Date Posted: 2/10/2006 9:49:00 AM
Thank you, Evertjan! I guess that's why Idon't recall how to code it -
'cause I never have,
Thought that came back with the cookie value.
Thanks for setting me straight.
Mike
Re: Reading Cookie Expiration
From: mrHoo
Date Posted: 2/10/2006 10:32:00 AM
Another way would be to send the exp date as a "suffix" to the text of
the
cookie.
you then have to split the cookie before you use it; but you always know
how
long before the thing expires
Re: Reading Cookie Expiration
From: Evertjan.
Date Posted: 2/10/2006 11:49:00 AM
Mike Reed wrote on 10 feb 2006 in comp.lang.javascript:
Thank you, Evertjan! I guess that's why Idon't recall how to code it -
'cause I never have,
Thought that came back with the cookie value.
Thanks for setting me straight.
I still think it is unacceptable that you do not quote!!!!
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
I apolgize for not quoting! You're right, of course. Should have cut and
pasted from the Web page. Didn't occur to me. I will in any and all
future posts.
Mike