Proggramatically delete cookies

  • Thread starter Thread starter kendera
  • Start date Start date
K

kendera

Is it possible to programmatically delete cookies? Can anyone help me
with this...
 
Yes. Client side script (JavaScript). But only cookies from your server
IIRC.


Peter
 
In ASP.NET:

Response.Cookies["Name"] = null;

Or do you mean inside a winforms app? The cookies folder holds them
all, just delete the .txt files in there, or you can use the
System.Net.Cookies namespace.
 
all, just delete the .txt files in there, or you can use the
System.Net.Cookies namespace.

Do you mean Cookies-Class from System.Net Namespace ? If I'm not wrong
then you can't read local cookies with the Cookies-Class.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top