Read cookie expiry date?

Discussion in 'ASP General' started by Guest, Aug 7, 2004.

  1. Guest

    Guest Guest

    How does one read and write the cookie expiration date. At the moment my
    code is returning a value BUT a garbled value:
    '//Write cookie...
    Response.Cookies("Propsect").Expires = Date() + 1

    '//Read cookie...
    ExpDate = Request.cookies("Propsect")
    Response.write "Prospect expiry date: " & expDate & "<br>"


    Result: u%5Fname=k

    ?

    Any ideas?
    Thanks
    Jason
    Guest, Aug 7, 2004
    #1
    1. Advertising

  2. "" wrote:
    > How does one read and write the cookie expiration date. At the moment
    > my code is returning a value BUT a garbled value:
    > '//Write cookie...
    > Response.Cookies("Propsect").Expires = Date() + 1
    >
    > '//Read cookie...
    > ExpDate = Request.cookies("Propsect")
    > Response.write "Prospect expiry date: " & expDate & "<br>"


    Cookie exipration dates are write-only. You cannot read them.


    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms. Please do not contact
    me directly or ask me to contact you directly for assistance. If your
    question is worth asking, it's worth posting.
    Dave Anderson, Aug 8, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    719
  2. Milsnips
    Replies:
    1
    Views:
    416
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 15, 2007
  3. sheraz_aries

    cookie expiry - classic asp

    sheraz_aries, Mar 20, 2009, in forum: .NET
    Replies:
    0
    Views:
    810
    sheraz_aries
    Mar 20, 2009
  4. Ray

    cookie expiry date problem

    Ray, Apr 21, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    149
  5. Vince C.
    Replies:
    1
    Views:
    199
Loading...

Share This Page