![]() |
VOOZH | about |
Cookies are small files that store information about your browsing activity, such as your login credentials, preferences, and site settings. While cookies are useful for enhancing the browsing experience, they can also impact your privacy and website performance. Microsoft Edge provides tools to manage cookies directly within the browser, allowing you to view, edit, and delete cookies as needed.
In this guide, we’ll show you how to manage cookies in Microsoft Edge so that you can maintain a balance between convenience and privacy.
To inspect the cookies stored by websites:
Launch the Edge browser on your device.
Press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (macOS) to open the Developer Tools. Alternatively, right-click on a webpage and select Inspect.
In the Developer Tools pane, click on the Application tab. If it's not visible, click the >> icon to reveal more tabs.
The right pane will display all cookies associated with that site, including details like Name, Value, Domain, Path, Expires/Max-Age, Size, HttpOnly, Secure, SameSite, and Priority.
Lets move from left to right to understand the various options provided to us.
To remove cookies, either individually or in bulk:
Launch the Edge browser on your device.
Step 3: Navigate to Cookies Settings:
The complete information about the cookie is separated under various fields shown below:
To modify specific cookie attributes:
Note: Editing cookies can affect your browsing experience and may lead to unexpected behavior on websites. Proceed with caution.
You can use JavaScript to read, create, update and delete cookies in your site. JavaScript uses the document object and cookie property to handle cookies. Let us understand one by one all operations done with the cookies using JS. All the code is executed using the HTML, CSS and JS IDE of GFG so, to test the code copy the below JS code under a script tag.
You can set the cookie using "document.cookie" property the values to be passed are name, value, expiry date and path. In the below code a myCookie() is called by passing the name, value and expiry days of the cookie. Its uses the date object to set the expiry date of the cookie in UTC.
Output:
You can use "document.cookie" property to get all the cookies and there value. It will return all cookies with there values separated by ';' in the format cookieName=value; .
Use the below code to get all cookies at once.
Output:
You can also get the cookie with respect to a given name. We create a readCookie() which takes a name parameter. The "document.cookie" property returns all the cookies name with value so, to get a particular cookie we first split the cookies into an array of string of cookieName=value. The function then removes any initial space in the strings and then check for the name of the cookie if its matched then it returns the value of the cookie.
Output:
You can edit a cookies name, value, path and expiry days using the document.cookie property. Just have the updated value in sting and pass it into document.cookie property.
Output:
Set the cookie's expiration date to a past date. Example:
Output: You can see GFG cookie is not present in the image below.
Managing cookies in Microsoft Edge is a crucial step for maintaining your privacy and browser performance. Whether you want to view, edit, or delete cookies, the browser provides powerful tools to control your data. By regularly cleaning up your cookies or adjusting your settings to block unnecessary cookies, you can enjoy a smoother and more secure browsing experience. Understanding and managing cookies in Edge ensures that you remain in control of your data while browsing the web in 2025.