[thelist] removing cookies in ASP

Andrew comitque at hotmail.com
Thu Apr 29 16:53:37 CDT 2004


Hey Anthony,

Thanks.  Using the Session Object sounds like a good idea.  I already had a
cookie infrastructure so I kept it.

Andrew

> First off, you should use th Session Object or a DB backend to store your
> Cart Information. Storing this data in the cookie itself is not a very
> clean solution.
>
> Second, to expire a cookie you use the .Expires property. All you are
doing
> with your solution is setting the cookie item to "zero". This might make
> your application ignore that item - but it's not "removing" the cookie.
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/iis/ref_vbom_resoccook.asp
>
> You can expire each item separately, if you really need to:
>
>          Response.Cookies(cookie)(key).Expires = #Date#
>
> -- 
> Anthony Baratta
> President
> Keyboard Jockeys
>
> "Conformity is the refuge of the unimaginative."
>
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>


More information about the thelist mailing list