Clean local storage on logout?

Hello,

Is there any way to clear local storage when logging out?

There is two ways I think:

  1. Clean up the local storage via cleaning the variables that use it
  2. Clean up the local storage with JavaScript before page unloads
1 Like