Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Cookies


Message #1 by "Ollie Cornes" <lotsofemail@c...> on Fri, 20 Apr 2001 18:51:06 +0100

I'm having a few problems with cookies (in C#) and i wonder if anyone can

shed some light.



I have a cookie i want to delete. I have tried using

Cookies.Remove("cookiename") but this call appears (on my configuration at

least) to have no effect. I also tried Cookies["cookiename"].Value="" which

has an effect, but it appears to duplicate the existing cookie, but give it

a blank value. The end result is two cookies with the same name but

different values.



Am I doing something dumb?



Ollie









Message #2 by Scott Watermasysk <swatermasysk@C...> on Fri, 20 Apr 2001 14:07:51 -0400
Try setting the expiration date to yesterday. ( .expires = Date - 1)



-Scott



-----Original Message-----

From: Ollie Cornes [mailto:lotsofemail@c...]

Sent: Friday, April 20, 2001 1:51 PM

To: ASP+

Subject: [aspx] Cookies







I'm having a few problems with cookies (in C#) and i wonder if anyone can

shed some light.



I have a cookie i want to delete. I have tried using

Cookies.Remove("cookiename") but this call appears (on my configuration at

least) to have no effect. I also tried Cookies["cookiename"].Value="" which

has an effect, but it appears to duplicate the existing cookie, but give it

a blank value. The end result is two cookies with the same name but

different values.



Am I doing something dumb?



Ollie











---

SoftArtisans helps developers build robust, scalable Web applications!

Excel Web reports, charts: http://www.softartisans.com/excelwriter.html

File uploads: http://www.softartisans.com/saf.html

Transactional file management: http://www.softartisans.com/saf1.html

Scalability: http://www.softartisans.com/saxsession.html

ASPstudio value pack: http://www.softartisans.com/aspstudiosuite.html



swatermasysk@c...



  Return to Index