Solved

How to remove cookies from the browser.

Posted on 2013-06-23
2
313 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 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
Comment Utility
tx
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now