Firefox can be set to clear off all the private data including history, downloads, cache, cookies, authenticated session etc at close. This is pretty simple.
- Go to Tools->Options in the main menu
- Select Security tab in the Options.
- Check the checkbox against “Always clear private data when I close Firefox“
You can set which all data has to be cleared at exit by selecting the setting options.