[thelist] ASP Cookies Expiry Tip

Warden, Matt mwarden at odyssey-design.com
Thu Aug 3 13:55:48 CDT 2000


><tip>Setting cookies in ASP? Be sure to set Expires first (e.g.
>         Response.Cookies("Type").Expires = "July 31, 2007"
>) before any lines that write values into the cookie. Otherwise the Cookie
>will expire as soon as the session ends / page exited if session state is
>off. Writing values to the cookie *then* setting Expires just doesn't
>work.</tip>


Hmmmm... any explanation? I ran into this problem a long time ago. I tried 
to "delete" a cookie that was previously set by setting the expiration date 
to today-1. So, how can you delete cookies?

--
mattwarden
mattwarden.com





More information about the thelist mailing list