how can we delete cookies by coding part . so pls help me



how can we delete cookies by coding part . so pls help me..

Answer / Nitin Tenguriya

To delete cookies programmatically, you can use the C# HttpCookie class. Here is an example of how to delete a cookie named 'myCookie':n```csharpnHttpCookie myCookie = Request.Cookies["myCookie"];nif (myCookie != null) {n myCookie.Expires = DateTime.UtcNow.AddDays(-1);n Response.Cookies.Add(myCookie);n}n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP Interview Questions

Define an application domain?

1 Answers  


How do I open aspx file on mac?

1 Answers  


what is m n c

1 Answers   NIIT,


What is n-tier system?

1 Answers  


Name and explain about the Objects in ASP?

1 Answers  


How to convert a string into an integer in .net?

1 Answers  


What is the difference between ASP and HTML?

9 Answers  


Explain the tags necessary to be present within the tag ?

1 Answers  


Explain how big is the data type int in .net?

1 Answers  


Explain the difference between sap r/2 and r/3?

1 Answers  


What is IIS?

2 Answers  


What is asp format?

1 Answers  


Categories