How to clear browser cookies and cache in code[Code required]
Need code to clear browser cookies and cache during page load.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prasant JinagaRank #2,383 · 594 reputationPosted Jul 27, 2011, 9:44 PM EDT
Hi Mani,
Refer folowing
Internet Explorer 8 and above
Safetymenu in the upper right, clickDelete Browsing History....Preserve Favorites website data, and selectTemporary Internet files,Cookies, andHistoryDelete.Internet Explorer 7
Toolsmenu in the upper right, selectInternet OptionsDelete...Delete files...
To delete your cookies, clickDelete cookies...
To delete your history, clickDelete history....Close, and then clickOKto exit.Firefox 3.5 and above for Windows
Toolsmenu, selectClear Recent History....Time range to clear:drop-down menu, select the desired range; to clear your entire cache, selectEverything.Cookiesto clear cookies). ClickClear Now.Firefox 3 for Windows
Toolsmenu, selectClear Recent History..., and then select the items you want to delete (e.g.,Browsing & Download History,Cache,Cookies).Clear Recent History....Chrome
Clear browsing history,Clear download history,Empty the cache,Delete cookies and other site and plug-in data).Obliterate the following items from:drop-down menu. To clear your entire cache, selectthe beginning of time.Clear browsing data.Safari
Safarimenu, selectReset Safari....Reset.Firefox 3.5 and above for Mac OS X
Toolsmenu, selectClear Recent History.Time range to clear:drop-down menu, select the desired range; to clear your entire cache, selectEverything.Clear Now.Firefox 3 for Mac OS X
Toolsmenu, selectClear Recent HistoryBrowsing & Download History,Cache,Cookies), and then clickClear Private Data Now.Mobile Safari for iPhone OS (iPhone, iPod Touch, iPad)
To clear cache and cookies:
Settings, and then tapSafari.At the bottom of Safari's settings screen, tap the buttons for
Clear CookiesandClear Cache. To confirm, tapClear CookiesorClear Cacheagain.To clear history:
- From the home screen, tap
- At the bottom of the screen, tap the
- In the lower left, tap
- Tap
Thanks,Safari.Bookmarksicon.Clear.Clear History.Prasant
manikandan rRank #3,426 · 422 reputationPosted Jul 28, 2011, 2:14 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jul 28, 2011, 3:18 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 28, 2011, 8:16 AM EDT
Note that if a program cleared all cookies without first asking permission, I would be very disappointed with it. If a program required me to clear all cookies, I would not use it.