I just want to know if the cookies are created while I try to access websites on localhost in Google Chrome.
Asked
Active
Viewed 2.3k times
8
-
`http://localhost/`? yes (the protocol doesn't change just because the HTTP server happens to be on the same machine). `file:///path`? no. – David-SkyMesh Apr 09 '12 at 12:32
-
This question and answer is relevant: http://stackoverflow.com/questions/6694173/manage-cookies-from-google-chrome-extension# Maybe mark this one as a duplicate? – RobW Feb 19 '16 at 18:52
2 Answers
8
Only if the page on localhost creates a cookie (client-side or server-side).
External resources (images, frames) may also create cookies, depending on your preferences.
You can check it yourself by opening the Developer tools (F12) -> Resources -> Cookies.

Rob W
- 341,306
- 83
- 791
- 678
-
Thanks , so as localhost doesnt create any cookies and changes made in my webpage hosted locally should be reflected once i refresh the page right?? – SNT Apr 09 '12 at 12:37
-
@Senthil The page may be [**cached**](http://en.wikipedia.org/wiki/Web_cache) (which is usually not affected by cookies). To get the most recent version of the page, use CTRL+F5 to load the page. At the Network tab of the Dev Tools, you can see whether the page is loaded from the cache or not. – Rob W Apr 09 '12 at 12:40
-
You don't necessarily have to refresh the page. You can also remove the focus from the cookies (i.e. clicking "Session Storage") and then go back to your cookies. The list should be refreshed now. – Ludder Feb 14 '14 at 13:32
-
1
6
Simply press F12, open Application
tab, expand Cookies
in left menu, right click on localhost
and and and click Clear
!

Kajbo
- 1,068
- 3
- 16
- 31