How to remove cookies from the browser.

How to remove saved cookies from any browser through code, on page load or any event from C# code.
searchsanjaysharmaAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
A web page can only remove the cookies that were set by that domain.  It is against the security rules to allow access to another domain's cookies.  You 'remove' a cookie by setting it with an expired date which causes the browser to remove it the next time you go to that page.  

http://msdn.microsoft.com/en-us/library/system.web.httpresponse.setcookie%28v=vs.80%29.aspx
0
 
searchsanjaysharmaAuthor Commented:
tx
0
All Courses

From novice to tech pro — start learning today.