Hi I have used localStorage to store the value of a variable.The problem is that localStorage never resets from what I managed to find on the internet.I am interested to reset localStorage when the browser is closed.
Is there a way to do that?
I have tryed using $(window).unload from jQuery but that detects changes related to the window and it resets the localStorage variable to soon.