How to Delete Bad Cookies and Clear Browser Cache
In this article
Deleting bad cookies usually means removing corrupted data or tracking files that cause websites to load incorrectly or log you out unexpectedly. The most effective way to fix these errors without losing all your saved passwords is to delete cookies for one specific site rather than clearing your entire browser history.
Clear Cookies for a Single Website
When one specific page refuses to load or keeps giving you an error message, you can target just that site. This prevents you from being logged out of every other account you have open in your browser. Labels may differ slightly depending on your browser version.
- Open the browser and navigate to the website that is acting up.
- Click the lock icon or the settings icon located on the left side of the address bar.
- Select Cookies and site data or Site settings from the dropdown menu.
- Click Manage cookies and site data or the specific cookie name listed.
- Click the trash can icon or Remove for every entry associated with that domain.
- Refresh the page by pressing F5 or clicking the reload button to see if the error is gone.
Wipe All Cookies and Cached Images
If multiple websites are behaving strangely or the browser feels sluggish, a full clear is necessary. This process removes all stored login sessions, meaning you will need to re-enter passwords for most sites. It also deletes the cache, which are local copies of images and scripts that may be outdated.
- Open the browser menu by clicking the three dots or lines in the top right corner.
- Navigate to Settings > Privacy and security.
- Select Clear browsing data.
- Choose a time range from the dropdown menu, such as Last hour, Last 24 hours, or All time.
- Check the boxes for Cookies and other site data and Cached images and files.
- Click Clear data and restart the browser to ensure all changes take effect.
Decide Which Data to Remove
Not every browser issue requires a full wipe. Use this list to decide which setting to use based on the problem you are seeing.
| If you see this... | Do this... |
|---|---|
| One site won't log in or shows a 400 error | Delete cookies for that specific site only |
| Images look broken or outdated on many sites | Clear Cached images and files only |
| Browser is lagging or crashing frequently | Clear All time cookies and cache |
| You are on a public computer | Clear All time browsing history, cookies, and cache |
Manage Third Party Cookie Settings
Third party cookies are created by domains other than the one you are currently visiting, often for advertising or tracking. Blocking these can stop some bad cookies from ever reaching your machine, though it can occasionally break site functionality like embedded maps or payment processors.
- Go to Settings > Privacy and security.
- Select Cookies and other site data.
- Choose Block third-party cookies to prevent external sites from saving data.
- Add specific websites to the Allow list if you notice a trusted site stops working after you enable blocking.
- Restart the browser to apply the new privacy rules.
Prevent Corrupted Data from Returning
Some bad cookies return because of browser extensions or outdated software. If you clear your cookies but the problem reappears within minutes, check your add-ons. Some extensions act as proxies or modify site data in real time, which can corrupt the cookies the site is trying to set.
Check for browser updates by going to Settings > About. If an update is pending, install it and restart. Outdated browsers may not handle modern cookie encryption correctly, leading to "bad" or invalid cookies. You can also try opening the site in an Incognito or Private window. If the site works perfectly in private mode, the problem is definitely caused by a stored cookie or a conflicting extension.
Handle Persistent Login Loops
A login loop happens when a site sets a cookie to remember you, but the browser rejects it or the cookie is corrupted, sending you back to the login page immediately after you enter your credentials. This is a classic example of a bad cookie.
To fix a loop, first clear the cookies for that specific domain as described in the first section. If that fails, check your system clock. Cookies have expiration dates; if your computer's date is set to 2020 but the cookie was issued in 2026, the browser will see the cookie as expired the moment it is created. Ensure your date and time are set to update automatically in your operating system settings. Once the clock is accurate, clear the site cookies one more time and attempt to log in.
Identify the Difference Between Cookies and Cache
People often use these terms interchangeably, but they store different types of information. Understanding the difference helps you avoid deleting things you actually want to keep.
| Feature | Cookies | Cache |
|---|---|---|
| Content | Text files with IDs, preferences, and login tokens | Images, CSS files, and HTML scripts |
| Purpose | Remembers who you are and what you did | Makes pages load faster by storing heavy files |
| Result of Deleting | You are logged out of websites | Pages load slower the first time you visit |
Stop Site Errors Caused by Full Storage
While rare, some browsers have limits on how many cookies a single domain can store. When this limit is hit, the browser may start deleting old cookies or fail to write new ones, which the website interprets as a bad cookie error. This often happens on sites you use for many hours a day, such as email clients or project management tools.
If you suspect storage limits, clear the cache for that specific site. While cookies and cache are stored in different areas, a bloated cache can sometimes interfere with the browser's ability to manage site data efficiently. If the error persists, check if you have too many tabs open for the same domain. Each tab can trigger new session cookies, and having 50 tabs of the same site open can occasionally confuse the session manager. Close unnecessary tabs and clear the cookies again.