Results 1 to 2 of 2

Thread: Cookies

  1. #1
    Philo Guest

    Default Cookies

    How do I print out expiry date for a cookie I have created in asp. I&#039ve tried <BR>&#060;% expire = Request.Cookies("customer").Expires <BR>Response.Write " Expiry date is : " &expire<BR>%&#062;<BR>but get "Object doesn&#039t support this property or method: &#039Expires&#039 "<BR><BR>

  2. #2 Guest

    Default RE: Cookies

    One way to work around this is to set a name=value pair in the cookie like:<BR>Response.Cookies("customer")("expDate") = "[Expiration Date]"<BR><BR>Then you could query the Request.Cookies for the expDate, but be sure to update the expDate anytime you use the <BR>Response.Cookies("customer").Expires<BR>line.< BR><BR>Hope it helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts