I'm using IE8 and the jstorage library to store data in place of cookies. This is all good until i want to clear the stored values. In chrome this is possible by navigating to the content settings page. However in IE8 it only provides an option to clear cookies which doesn't clear the values I've stored in local storage.
Any ideas how i can clear this data? I don't want to display a "clear cache" button
Try localStorage.clear() in Console panel of IE Developer toolbar. It returns an "undefined" but seems to clear local storage.
It is worth mentioning that this function only clears the localStorage of the domain of the current window, not all localStorage values for the browser.
Example: (IE8 issue) If you're website is loading external content within an iFrame, localStorage.clear() won't clear that domain inside of the iFrame unfortunately.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With