I have a doubt about, what thing qualifies like sensible information. Let me explan. I just find that a system is saving the username in the localStorage when are logged. It stays there and when you logout it diseappears.
So it qualifies bad programing practices?
Thank you for your help
Moreover, if the app needs to store information per session, the app should use Session Storage instead and to store the username (or any user information), the recommendation is to put it in the Cookie.
I think that this post is also here and answered Why using localstorage in JS is insecure?