How to interpret a Classic ASP cookie file.

Classic ASP VBScript
WIN XP Pro

Hello.

With the help of some Experts, I am getting into Cookies, for which I previously have not had a need.

I am successfully generating Cookies now, however, I would like to know how to interpret the file it generates.  I am wanting to verify expiration dates, etc., however, it all looks cryptic to me.

I create a simple Cookie from a Login form and accompany that with an "Expiration" line:
            response.cookies("cookiepass")=request.form("tm_Password")
            response.cookies("cookiepass").expires = dateadd("d", 1, now())

1) I attached the contents of the file it generates, but I can't decipher what all the lines mean, and more specifically, where is the "expiration" date?

2) After a Cookie expires, does it delete the Cookie from the file/system?  If not, what indication is there in the file that the cookie has expired?

Thank you so much,
Shane
*
cookiepass
mypassword
preflite1.amec.philips.com/
1024
2335488512
29967603
1669535008
29967402
*

Open in new window

lshaneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ChetOS82Commented:
Why are you trying to decipher the file?  Just use the Request.Cookies object to get the data.

The expiration date consists of the numbers after the domain.

The browser handles cookie expiration automatically.  If the cookie expires it is deleted from the filesystem automatically.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lshaneAuthor Commented:
Hi, ChetOS82.  Thank you.

I know it's a bit trivial, but I was just wanting to actually see the projected expiration date listed.  Just viewing the cause-and-effect of the cookie generation.

I am indeed using the Request.Cookies object to retrieve the data.  I was just hoping actually be able to see tomorrow's date as the "expiration" date, if generated today with an "expiration" of 1 day after today.

Thanks for the confirmation of how the system handles the expiration - by deleting it from the system.

Thanks so much,
Shane
0
lshaneAuthor Commented:
I was just hoping to know what all those numbers mean.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.