By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,934 Members | 1,527 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,934 IT Pros & Developers. It's quick & easy.

Reading Cookie Expiration

P: n/a
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?

*** Sent via Developersdex http://www.developersdex.com ***
Feb 10 '06 #1
Share this Question
Share on Google+
9 Replies


P: n/a
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)
Feb 10 '06 #2

P: n/a
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.

*** Sent via Developersdex http://www.developersdex.com ***
Feb 10 '06 #3

P: n/a
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)
Feb 10 '06 #4

P: n/a
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

*** Sent via Developersdex http://www.developersdex.com ***
Feb 10 '06 #5

P: n/a
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
Feb 10 '06 #6

P: n/a
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)
Feb 10 '06 #7

P: n/a
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?

*** Sent via Developersdex http://www.developersdex.com ***

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.

*** Sent via Developersdex http://www.developersdex.com ***
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

*** Sent via Developersdex http://www.developersdex.com ***
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

*** Sent via Developersdex http://www.developersdex.com ***
Feb 10 '06 #8

P: n/a
Mike Reed wrote on 10 feb 2006 in comp.lang.javascript:
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.


Better use a dedicated [free] news reader, instead of some web interface.

This will let you quote according to netiquette.

Google groups will do, though not as easy,
if your ISP has no news server,
but then do the folowing:

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers. <http://www.safalra.com/special/googlegroupsreply/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 10 '06 #9

P: n/a
Mike Reed wrote:
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?


That this is not a VBScript newsgroup.
PointedEars
Feb 10 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.