Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete cookies & cache from internal web browser of Eclipse

When using Eclipse Java EE IDE for Web Developers edition of Eclipse Juno SR2, and running a web app in the internal web browser, how does one delete that browser’s cookies and cache?

I've searched Eclipse's Help, the Google, and StackOverflow.com, but surprisingly found no direct correct answer to this simple question.

like image 277
Basil Bourque Avatar asked Mar 24 '13 08:03

Basil Bourque


People also ask

Is it a good idea to delete your cookies?

You definitely should not accept cookies – and delete them if you mistakenly do. Outdated cookies. If a website page has been updated, the cached data in cookies might conflict with the new site. This could give you trouble the next time you try to upload that page.

What happens if you delete your cookies?

When you delete cookies from your computer, you erase information saved in your browser, including your account passwords, website preferences, and settings. Deleting your cookies can be helpful if you share your computer or device with other people and don't want them to see your browsing history.

What is the shortcut to delete cookies in Chrome?

In Chrome, click the vertical ellipsis button in the upper right corner. Select "More tools", then "Clear browsing data". Or, you can use the shortcut of pressing the Ctrl + Shift + Delete keys to bring up the same menu. This keyboard shortcut works on Chrome, Firefox, Edge, and Internet Explorer.


2 Answers

Eclipse does not really have an Internal Browser. It just uses the default browser on the system. You can change this behaviour from

Window > Preferences > General > Web Browser

Clearing cookies should be done from the browser.

Let me know if this helps.

like image 164
Valentin Despa Avatar answered Sep 16 '22 20:09

Valentin Despa


Trimming the history list in Eclipse's internal web browser

I use the internal web browser quite a bit when I'm developing - if nothing else, it's a handy place to test out the GET requests for RESTful web services. I also use Eclipse for HTML writing, and again the internal browser is a useful first test of "does this look right yet?". This means I build up quite a long history list, and the most recent entries – the ones I'm mostly likely to be looking for – require scrolling to find and re-use them. I have not, to date, found a setting inside Eclipse (I'm using 3.3.2 at the time of writing this) to edit the internal browser history. I'd be delighted to be proved wrong.

In the meantime, the workaround is to close Eclipse, then edit the file $WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.browser.prefs where $WORKSPACE is your Eclipse workspace root directory. This is a plain text file: my preferred text editor on Linux and Windows is SciTE but it doesn't actually matter which one. This file has a preference key internalWebBrowserHistory, with the format:

internalWebBrowserHistory=url|*|url|*| ...

Removing stale entries is straightforward; modifying or adding new entries is perfectly doable, noting that colon characters (:) are escaped with a preceding backslash (\:). Save changes, restart Eclipse, done. Hopefully there will be an internal preference editor to make this easier inside Eclipse in future (or, someone will point out to me that I've been unobservant and that it's already there).

like image 27
Erran Morad Avatar answered Sep 18 '22 20:09

Erran Morad