473,327 Members | 2,090 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,327 software developers and data experts.

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 ***
Feb 10 '06 #1
9 5469
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Christophe Lance | last post by:
Hello, I use PHP session cookie to store an id number. I know how to set a cookie expiration date using the setcookie function, but how to set an expiration date when the cookie is created by...
7
by: Christoph Pieper | last post by:
Hi, we've the following problem : We have an asp-application which sets the cookie on first login. The cookie will never be touched during user access. The user can work the whole day, but...
15
by: Oleg Leikin | last post by:
Hi, (newbie question) I've created some simple .NET ASP application that should store cookies at the client machine. According to the documentation cookie expiration time is set via...
0
by: Kepler | last post by:
I'm testing very basic FormsAuthentication and having trouble with non-persistent cookies. Once authenticated with a non-persistent cookie, if I leave the browser alone for 30 minutes,...
2
by: Bill Borg | last post by:
Hello all, I am working on forms authentication and trying to understand: what's the relationship between the cookie expiration and the ticket expiration? I create a cookie and I add an...
2
by: Jeff Bowman | last post by:
Here's the code: Private Sub SetCookie(ByVal tcEmail As String) Dim loCookie As New HttpCookie("Email") loCookie.Value = Utils.StringToBase64(tcEmail) loCookie.Expires = Now.AddYears(10)...
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....
5
by: SJ | last post by:
Hi, In my website, i have a cookie that allows the user to remain logged in for upto 90days. So I'm setting the cookie expiration time to 90 days in the future from the time the user logs in....
29
by: Jerim79 | last post by:
I did try to find the answer to this before posting, so this isn't a knee jerk reaction. What I am trying to accomplish is to have a script that opens a cookie, reads a value, and then use a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.