What cookies are and why websites need them
Cookies are small files that websites store on your computer to remember information about you. When you visit a website, it can save a cookie that contains things like your login details, items in your shopping cart, or your language preference. The next time you visit that same website, it reads the cookie and knows who you are without asking you to log in again.
Most websites need cookies to work properly. Without them, you would have to log in every single time you visit, shopping carts would empty when you close the browser, and websites would not remember any of your settings. Some sites will not load at all if cookies are turned off, or they will show you a message saying cookies are required.
Cookies are turned on by default in every major browser, but sometimes they get disabled by accident or by a setting you changed. If a website is not working the way it should, or if you see a message asking you to enable cookies, the steps below will fix it.
Key Takeaways
- Cookies are small files websites use to remember you, and most sites need them to work properly.
- The steps to turn on cookies are different in each browser, but all of them are found in the Settings or Preferences menu.
- You can turn on cookies for all websites, or set rules for specific sites if you want more control.
- If a website still does not work after you turn on cookies, try clearing your browser cache and restarting your browser.
How to enable cookies in Chrome
Open Chrome and look for the three vertical dots in the top right corner of the window. Click those dots, then click Settings. On the left side of the screen, click Privacy and security, then click Cookies and other site data.
You will see several options. Make sure the box next to Allow all cookies is selected. If you see a box that says Block all cookies or Block third-party cookies, uncheck it. Once you have made these changes, close the Settings tab and go back to the website that was not working. Refresh the page by pressing Ctrl+R (or Cmd+R on Mac).
How to enable cookies in Firefox
Open Firefox and click the three horizontal lines (called a hamburger menu) in the top right corner. Click Settings, then click Privacy & Security on the left side. Scroll down until you see the section labeled Cookies and Site Data.
You should see a checkbox that says Accept cookies and site data. Make sure this box is checked. If it is unchecked, click it to turn cookies on. You can also see a list of websites that have stored cookies on your computer by clicking Manage Data, but you do not need to do anything there unless you want to delete specific cookies. Close the Settings tab and refresh the website you were having trouble with.
How to enable cookies in Safari
Open Safari and click Safari in the menu bar at the very top of your screen (not inside the browser window). Click Settings or Preferences depending on your Mac version. Click the Privacy tab.
Look for the section that says Cookies and website data. You should see a radio button or dropdown menu. Select the option that says Allow from websites I visit or Always allow. Do not select Never or Only from websites I visit if you want cookies to work everywhere. Click the red close button to save your changes, then go back to the website and refresh it.
How to enable cookies in Edge
Open Microsoft Edge and click the three dots in the top right corner. Click Settings, then click Privacy, search, and services on the left side. Scroll down to the section labeled Cookies and other site data.
You will see a toggle switch next to Cookies and other site data. Make sure this toggle is turned On (it should be blue). Below that, you may see an option that says Block all cookies — if that toggle is on, turn it off. Close the Settings tab and refresh the website that was not working.
Allowing cookies for a specific website only
If you want to turn on cookies for most websites but block them on a few specific sites, you can set rules for individual websites. In Chrome, Firefox, and Edge, go back to the Cookies settings and look for a button that says Add or Allow. Type in the website address (for example, example.com) and click Add. That website will now accept cookies even if your default setting is to block them.
In Safari, you cannot set rules for individual websites in the same way. Instead, you can only choose to allow cookies from all websites you visit, or never allow them. If you need cookies for a specific site, you will need to turn on the general cookie setting.
What to do if websites still do not work after enabling cookies
Sometimes turning on cookies is not enough. Your browser may have stored old data that is getting in the way. Try clearing your browser cache by going back to Settings, finding the option for Clear browsing data or Clear cache, and selecting it. Make sure you are only clearing cache and cookies, not passwords or autofill data, unless you want to clear those too.
After you clear the cache, close your browser completely and open it again. Then go to the website that was not working and try logging in or using it again. If it still does not work, the problem may be with the website itself rather than your browser settings. You can contact the website's support team to let them know you have turned on cookies and the site is still not working.
Frequently Asked Questions
Are cookies safe? Can they steal my passwords?
Cookies cannot steal your passwords or run programs on your computer. They are just small text files that store information. However, some websites use cookies to track your browsing habits across the internet. If you are concerned about tracking, you can turn on your browser's private or incognito mode, which does not save cookies after you close the window.
What is the difference between cookies and cache?
Cookies are files that websites create to remember information about you. Cache is a collection of images, scripts, and other files that your browser saves to make websites load faster the next time you visit. Both can be cleared separately in your browser settings, and clearing one does not affect the other.
Why does a website say cookies are disabled when I just turned them on?
Your browser may need to be restarted for the change to take effect. Close the browser completely (not just the tab) and open it again. If the message still appears, try clearing your cache and cookies, then restart the browser. If the website still does not recognize that cookies are on, the problem may be with how that specific website checks for cookies.
Can I turn on cookies for some websites and block them on others?
Yes, in Chrome, Firefox, and Edge you can add specific websites to an allow list in the Cookies settings. Type the website address and click Add. That site will accept cookies while your default setting applies to all other websites. Safari does not have this feature — you can only turn cookies on or off for all websites at once.
What happens if I clear cookies?
Clearing cookies will log you out of most websites and delete any saved preferences like your language or theme choice. The next time you visit those sites, they will not remember you. You will have to log in again. This is why some people clear cookies regularly for privacy, but it can be inconvenient if you visit the same sites often.