FAQ: Deleting HTML5 storage data with SiteKiosk

Description

With “Chrome Browser” skin (SiteKiosk configuration-->Start Page & Browser) SiteKiosk deletes the HTML5 storage by default.
Just make sure the option "Delete Temporary Internet Files" at "-->Logout" is enabled (is enabled by default when creating a new configuration).

With IE based skins (e.g. Metro IE) you need to enable the additional option "Delete Internet Explorer DOM storage (requires SiteKiosk restart)" at "Logout" in the SiteKiosk configuration to delete the HTML5 storage.
Note: This option is availabel since SiteKiosk 9.7.



Otherwise (with older SIteKiosk versions and using an IE based skin) you need to add a little external script to the SiteKiosk configuration (-->Start Page & Browser-->Advanced-->Execute script file) that deletes the HTML5 storage data and restarts the browser (generally required for deleting HTML5 Storage data)

Example script (without further support):

//Initializing the events we want to use to delete Web Storage
SiteKiosk.OnReset = WaitBeforeDelete;
SiteKiosk.ScreenSaver.OnScreenSaverEnd = DeleteWebStorage;

function WaitBeforeDelete()
{
	//check if screen saver is running
	if (!SiteKiosk.ScreenSaver.Active){
	//Give SiteKiosk some time to run through its default session end methods
	evtid = SiteKiosk.Scheduler.AddDelayedEvent(5000, DeleteWebStorage);
	}
}

function DeleteWebStorage(eventID)
{  
	try
	{	
		//Deleting the folder in SiteKiosk user account with the help of the FileSystemObject
		var fso = new ActiveXObject("Scripting.FileSystemObject");
 		fso.DeleteFolder("C:\\Users\\SiteKiosk\\AppData\\Local\\Microsoft\\Internet Explorer\\DOMStore", true);
 		SiteKiosk.Logfile.Notification("Deleting the Web Storage content was successful");
		
		//Required restart to clear the Web Storage from the temporary cache of the current browser instance
		SiteKiosk.Restart();
 	}
	catch (e)
	{
		//Optionally create a SiteKiosk logfile entry in case something goes wrong
		//SiteKiosk.Logfile.Notification("There was an error deleting the Web Storage content: " + e.description);
	}
}

The script deletes the HTML5 storage data on logout and screen saver end within the SiteKiosk user folder (also restarts the SiteKiosk Browser on logout and when the screen saver deactivates).
When not using default “Auto Start” you need to adjust the path in the script to match the user account.

Just copy & paste the lines above into an editor (e.g. Notepad) and save it as JS file (e.g. DeleteWebStorage.js) to the folder “…\SiteKiosk\Html”.
Then add that script to the SiteKiosk configuration (-->Start Page & Browser-->Advanced-->Execute script-->On startup of SiteKiosk, execute the following script file).

Answer: (0)

No answers/comments
My Account
Login
Language (Articles):