How to interpret a Classic ASP cookie file.

Posted on 2008-11-11
Last Modified: 2012-05-05
Classic ASP VBScript


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").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,









Open in new window

Question by:lshane
    LVL 18

    Accepted Solution

    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.

    Author Comment

    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,

    Author Comment

    I was just hoping to know what all those numbers mean.
    LVL 18

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
    This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now