how to remove cookies from browser in asp.net c#
To delete cookies 1 In Internet Explorer, select the Tools button, point to Safety, and then select Delete browsing history. 2 Select the Cookies and website data check box, and then select Delete. More ...
On your computer, open Chrome. At the top right, click More . Click More tools Clear browsing data. At the top, choose a time range. To delete everything, select All time. Next to "Cookies and other site data" and "Cached images and files," check the boxes.
To delete cookies in Google Chrome: Select the 3 vertical dots in the upper-right corner of the Chrome screen. Select More Tools > Clear browsing data. Select the Cookies and other site data checkbox. To delete the saved passwords in Chrome, select Passwords and other sign-in data.
Opera: Clear Browsing Data. The setting to delete cookies in Opera is found in the Clear browsing data part of the browser, which is a section of Settings. On the top right corner, select Easy Setup (Looks like sliders.) Scroll down to the Clear browsing data section and select Clear browsing data.
Here's how.
if (Request.Cookies["MyCookie"] != null)
{
HttpCookie myCookie = new HttpCookie("MyCookie");
myCookie.Expires = DateTime.Now.AddDays(-1d);
Response.Cookies.Add(myCookie);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With