- 27 Sep 2022
- 6 Minutes to read
- Contributors
- DarkLight
- PDF
FAQ #1 How to configure policies...
- Updated on 27 Sep 2022
- 6 Minutes to read
- Contributors
- DarkLight
- PDF
**QUESTION: **
How to configure policies recommended by Identity Automation for Kiosk Mode workstations to remove cache, history & cookies from Chromium & Firefox browsers?
**SOLUTION: **
As an administrator, you can control how long Chrome/Edge/Firefox keeps data, such as history, cookies, and passwords. You can delete certain data as soon as browser closes or when it becomes older than the time that you specify. By doing this you** can make SnapApp secure across sessions.**
Delete data when Chrome closes
Before you begin, you have to turn off Google Sync using the SyncDisabled policy. If you set the policy to delete data at platform level, you need to turn off Sync at platform level. Likewise, if you set the policy to delete data at user level, you need to turn off Sync at user level.
Recommended/Minimum settings (data types) to set for deleting sessions and/or disabling by Identity Automation are:
- **cookies_and_other_site_data: **Deletes cookies and other site data
- password_signin: Deletes saved passwords
- autofill: Deletes saved autofill data that was saved in the browser
- site_settings: Resets site settings to their defaults
- hosted_app_data: Deletes data cache for hosted apps that are installed in the browser
Automatically remove Chrome browsing data on exit using Group Policy Editor
- Open the Local Group Policy Editor on your computer. For that, press Win+R, type gpedit.msc, and press the Enter button.
- Navigate to this path:
- Computer Configuration > Administrative Templates > Google Chrome
- Here you can find a setting called Clear Browsing Data on Exit. You need to double-click on this setting and choose the Enabled option.
Click on the Show button and enter the items which you want to remove on exit as displayed in the above image. For example, you can use the following parameters:
- browsing_history
- download_history
- cookies_and_other_site_data
- cached_images_and_files
- autofill
- password_signin
- site_settings
- hosted_app_data
Minimum settings (data types) which is recommended by Identity Automation from the above list are:
- cookies_and_other_site_data
- autofill
- password_signin
- site_settings
- hosted_app_data
click the OK button twice to save the change. Now, you need to restart the Google Chrome browser to take the effect.
Automatically remove Chrome browsing data on exit using Registry
- Press Win+R > type regedit > press the Enter button and click the Yes button to open the Registry Editor on your computer. Once it is opened, navigate to the following path:
- HKEY_LOCAL_MACHINE\SOFTWARE\Policies
- Right-click on Policies > New > Key, and name it as Google. Then, right-click on Google > New > Key, and name it Chrome.
- Right-click on the Chrome key > New > Key, and set the name as ClearBrowsingDataOnExitList.
- Right-click on ClearBrowsingDataOnExitList > New > String Value, and name it 1.
- Double-click on it to set the Value data as displayed in the following image:
- Click the OK button and reboot your computer.
Note: Minimum settings recommended by Identity Automation are cookies_and_other_site_data, autofill, password_signin, site_settings, hosted_app_Data.
To set SyncDisabled in Registry for Chrome
You can set SyncDisabled setting in registry as displayed in the following image:
Delete data when Edge closes
You can delete your browsing history on exit – and you can do it via Edge Settings or by using the Registry.
Automatically delete Edge browsing history on exit
- Launch Microsoft Edge browser.
- Go to ‘Settings and more‘ menu, residing in the upper-right corner of the browser window.
- Click the menu, select ‘Settings‘ option. In the new window that opens, choose ‘Privacy and services‘.
In the right pane scroll down to ‘Clear browsing data‘ section. Here, choose the second heading – ‘Choose what to clear every time you close the browser‘.
To delete or clear the browsing history of Edge on close, toggle the switch for ‘Browsing history‘ to ‘On’ position.
When enabled, the Edge browser will be configured to automatically delete Microsoft Edge browsing history on exit.
Automatically delete Edge browsing history using the Registry Editor on exit
- Open Registry Editor. Next, navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft
- Here you have to create two keys. For that, right-click on Microsoft and select New > Key. Name it as Edge.
Then, right-click on the Edge key, select New > Key, and name it as Recommended.
Now you have to create a DWORD Value inside the Recommended key. For that, right-click on the Recommended > New > DWORD (32-bit) Value, and name it as ClearBrowsingDataOnExit.
By default, it comes with 0 as the Value data. Double-click on it, enter 1 as the Value data and click the OK button.
Similarly, if you want to delete cached images and files when Edge exits automatically, you have to create a DWORD Value ClearCachedImagesAndFilesOnExit and set the Value data 1. In case you want to keep your browsing data, you can open the ClearBrowsingDataOnExit, and set the Value data as 0.
Note: Minimum setting recommended by Identity Automation is ClearBrowsingDataOnExit.
Automatically delete Edge browsing history using Group Policy on exit
Press Win+R, type gpedit.msc, and press the Enter button. Next, navigate to the following path:
- Computer Configuration > Administrative Templates > Classic Administrative Templates > Microsoft Edge - Default Settings
Double-click on the Clear browsing data when Microsoft Edge closes setting and select the Enabled option.
Next, click the OK button to save the change.
It is also possible to delete cached images and files on exit. For that, you have to enable the Clear cached images and files when Microsoft Edge closes setting.
In case you do not want to clear the browsing data on exit, open the same setting, and choose either Not Configured or the Disabled option.
If you use this solution, you need not use the Private browsing mode and keep using the normal mode. Also, you do not have to worry about deleting browsing data manually for privacy reasons.
Note: Minimum setting recommended by Identity Automation is ClearBrowsingDataOnExit.
Delete data when Firefox closes
Automatically delete Firefox browsing history using Group Policy on exit
Open the Local Group Policy Editor by pressing Win+R, typing gpedit.msc, and hitting the Enter button. Once it is opened, navigate to the following path:
- Computer Configuration > Administrative Templates > Mozilla > Firefox
In the Firefox section, you can find a setting called Clear data when browser is closed. Double-click on this setting and choose the Enabled option.
Then, you can see some checkboxes. The options are:
- Cache
- Cookies
- Download History
- Form Search History
- Active Logins
- Site Preferences
- Offline Website Data
Make a tick in every corresponding checkbox that you want to clear. For instance, if you want to delete only Cache and Cookies, tick those two checkboxes. Similarly, if you’re going to clear everything when Firefox closes, tick all the checkboxes.
At last, click the OK button.
Automatically delete Firefox browsing history using Registry Editor on exit
To get started, open the Registry Editor by pressing Win+R, typing regedit, hitting the Enter button, and selecting the Yes option. Then, navigate the following path:
- HKEY_LOCAL_MACHINE\SOFTWARE\Policies
Right-click on the Policies key, select New > Key and set the name as Mozilla. Then, right-click on Mozilla > New > Key, and name it as Firefox.
Following that, right-click on the Firefox key, choose New > Key and name it as SanitizeOnShutdown.
Now, right-click on SanitizeOnShutdown, select New > DWORD (32-bit) Value, and name it as Cache. In other terms, you have to name this REG_DWORD value as per the data you want to clear. In case you want to clear only cache, call it Cache. Otherwise, you can use the following names as per your requirements:
- Cache
- Cookies
- Downloads
- FormData
- History
- OfflineApps
- Sessions
- SiteSettings
You can set all the properties as displayed in the following image:
Note: Minimum settings recommended by Identity Automation are Cookies, FormData, Sessions, SiteSettings.