qkhckgxhp qkhckgxhp - 1 year ago 75
Javascript Question

Clearing localstorage

What are the ways to clear the

from the user-side and from the website-side?

For the website-side I found the "
", but I can't find out if it clears all the localStorage or specifically for the same domain.

As for the user-side, I simply couldn't find any info. about it.

Thanks in advance!

Answer Source

localStorage is per domain/origin.

Clear it with code using localStorage.clear()

Clear it with the browser as you clear cookies/cache.

Further reading:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download