Trigger API: Clear Data

These custom functions allow you to clear the cache, cookies & session storage, and/or local storage manually through JavaScript, without using the Kiosk Pro app settings and returning to the homepage.

Functions

Related Settings

Requirements

  • Access JavaScript API
    • By Import - recommended, works both online & offline, requires inclusion of kiosk_functions.js prior to any of the following calls.
    • By Injection - only works offline, may not be available 'onload'.

Sample Code

This sample code relies on the JavaScript APIs built into Kiosk Pro and will not run successfully in other browsers or within our in-app help interface.  
To run sample code, set the app's homepage to http://www.kioskproapp.com/clear-data

Download Sample Code


kp_Browser_clearCookies

This function clears any cookies & session storage that have been stored in Kiosk Pro.

Format
kp_Browser_clearCookies();
		

kp_Browser_clearCache

This function clears the cache within Kiosk Pro.

Format
kp_Browser_clearCache();
		

kp_Browser_clearLocalStorage

This function clears the local storage within Kiosk Pro.

Format
kp_Browser_clearLocalStorage();
		

Still stuck? How can we help? How can we help?