Note that, if you set your browser to automatically clear your cookies when you close it, you will have to log into the websites you use each time you open your browser. Clearing cache files will cause websites to load more slowly after you restart your browser.
Google Chrome
Google Chrome doesn’t include the ability to automatically clear all your private data when you close it. However, you can have Chrome automatically clear cookies on exit or use an extension to have it automatically clear everything.To get started, open the Settings screen from Chrome’s menu.
Click the Show advanced settings link at the bottom of the Settings page.
Click the Content settings button under the Privacy header.
Under Cookies, select “Keep local data only until I quit my browser” and click OK. When you close Chrome, it will now automatically clear your cookies.
If you want to clear all your private data when you close Chrome, install the Click&Clean extension from the Chrome Web Store.
After installing it, click the Click&Clean button on your browser toolbar and select Options.
Enable the “Delete private data when Chrome closes” option under Extra. You can control which types of data will be automatically deleted using the options in this window.
Mozilla Firefox
Firefox has the built-in ability to clear all your private data when you close it – no extensions required. To get started, open the Firefox menu and select Options.Select the Privacy icon and choose “Use custom settings for history.” Enable the “Clear history when Firefox closes” check box.
To control which types of private data Firefox automatically clears, click the Settings button and choose the types of private date you don’t want.
Internet Explorer
Internet Explorer has the built-in ability to clear its private data when you close it, too. Click the gear icon and select Internet options to get started.On the General tab, enable the “Delete browsing history on exit” option.
Click the Delete button to customize which types of data Internet Explorer will clear. You may want to uncheck “Preserve Favorites website data” or Internet Explorer will keep cookies and cache files for websites you have saved as favorites.
Click the Delete button when you are done. Internet Explorer will immediately clear your private data and then clear it each time you close your browser.
Opera
Opera doesn’t include a feature that can automatically delete all your private data when it closes. However, you can have Opera clear cookies and cache files automatically, as well as prevent Opera from saving your browsing history.To get started, open the Opera menu, point to Settings, and select Preferences.
On the Advanced tab, select Cookies and enable the “Delete new cookies when exiting Opera” option. Opera will clear any new cookies each time you close it.
Note that this won’t clear any cookies you already have in Opera. To clear them, use Opera’s Delete Private Data tool or click the Manage Cookies button.
Select the History section and click “Empty on exit” to have Opera automatically clear its cache on close. You can also set the Addresses box to 0 to have Chrome never keep a history of websites you visit.
To clear all your private data in Opera, you will need to use the Delete Private Data feature manually or use private-browsing mode when accessing websites you don’t want appearing in your history.
Note that you will have to close your browser entirely to clear its private data. For example, if you have several Firefox windows open and only close one of them, Firefox won’t automatically clear all your private data. You will have to close every Firefox window first.
Source: http://www.howtogeek.com/137681/how-to-automatically-clear-private-data-when-you-close-your-browser/?utm_source=newsletter&utm_medium=email&utm_campaign=170213