One benefit of single page applications like Angular.js
, is that you can store data in a global variable and access in multiple routes.
With multiple page applications, the data is lost during navigation. Ideally, such data should remain available on the user side while the user session is active. Using SessionStore
does not solve this issue. There is the possibility of using LocalStore
, but it is not limited to the session. One could fiddle something by extracting the session id from cookies.
Is there a better solution than using LocalStore
?