Solved

How to remove cookies from the browser.

Posted on 2013-06-23
2
319 Views
Last Modified: 2013-06-29
How to remove saved cookies from any browser through code, on page load or any event from C# code.
0
Comment
Question by:searchsanjaysharma
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39270057
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
 

Author Closing Comment

by:searchsanjaysharma
ID: 39286608
tx
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question