I have an Ext-JS(Sencha) mobile application. After a user logs in, i load some data from the server in which I store in variables for the users session. I was wondering if it was better to use sessionStorage vs putting these into variables, or if it even made a difference. (The data is sometimes pretty large, but it's not static enough to put into localStorage).
Are there any advantages to using sessionStorage, from a performance standpoint, over in-memory variables ?
Thanks
I would say the advantage is that session storage will go across page loads. If the data is not going to outlast a page load just use variables.
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