Connecting Tech Pros Worldwide Help | Site Map

Reading Cookie Expiration

 
LinkBack Thread Tools Search this Thread
  #1  
Old February 10th, 2006, 03:15 PM
Mike Reed
Guest
 
Posts: n/a
Default Reading Cookie Expiration

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

  #2  
Old February 10th, 2006, 03:15 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

Mike Reed wrote on 10 feb 2006 in comp.lang.javascript:
[color=blue]
> 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?
>[/color]

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)
  #3  
Old February 10th, 2006, 03:45 PM
Mike Reed
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

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 ***
  #4  
Old February 10th, 2006, 03:45 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

Mike Reed wrote on 10 feb 2006 in comp.lang.javascript:[color=blue]
> Servers can read client cookies![/color]

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)
  #5  
Old February 10th, 2006, 03:55 PM
Mike Reed
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

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 ***
  #6  
Old February 10th, 2006, 04:45 PM
mrHoo
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

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


  #7  
Old February 10th, 2006, 05:55 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

Mike Reed wrote on 10 feb 2006 in comp.lang.javascript:
[color=blue]
> 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.
>[/color]

I still think it is unacceptable that you do not quote!!!!

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
  #8  
Old February 10th, 2006, 06:25 PM
Mike Reed
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

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:
[color=blue]
> I must be having a "senile" day! I cannot recall, nor get to work,[/color]
code[color=blue]
> to read a cookie's expiration date/time in an ASP page/VBScript.
>
> What am I missing?
>[/color]

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:[color=blue]
> Servers can read client cookies![/color]

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:
[color=blue]
> 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.
>[/color]

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 ***
  #9  
Old February 10th, 2006, 06:55 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

Mike Reed wrote on 10 feb 2006 in comp.lang.javascript:
[color=blue]
> I apolgize for not quoting! You're right, of course.[/color]
[color=blue]
> Should have cut and
> pasted from the Web page. Didn't occur to me. I will in any and all
> future posts.[/color]

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)
  #10  
Old February 10th, 2006, 07:45 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default Re: Reading Cookie Expiration

Mike Reed wrote:
[color=blue]
> 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?[/color]

That this is not a VBScript newsgroup.


PointedEars
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.