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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Jul 28, 2011, 12:16 PM
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.
Suthish NairPosted Jul 28, 2011, 7:18 AM
manikandan rPosted Jul 28, 2011, 6:14 AM
Prasant JinagaPosted Jul 28, 2011, 1:44 AM
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