I'm working on a Angular project that used localstorage. The project is a web application of a travel agency. In this web app, the first time a visitor arrived we display prices with a default currency. What i have done is that, when the visitor change the currency, i store the choosen currency in localstorage so that the next time he came on our web app, i just have yo take there his favorite currency ans display prices related to it. I have plan to do it with other data like languages and other ones.
Before enabling ssr on project, everything was working fine but now i'm facing the issue "localstorage is undefined".
Before anything, what i really want to confirm is that: is it possible to store data on server side so that a user can recover them even if he close the web app on browser and open it again ?
Will the server store individual data for all users, so that they recover them every time ? I mean before ssr enabling, i know that each one browser would have store individual choosen currency.
If refreshing the page and using localstorage on server side ,will all data store in storage will be removed ?
Is it Another way to properly handle this ?
Please guys i'm a french native speaker so, i apologize for my english level.
I am a self-taught web developer Please be lenient in your answers
Thanks for your help.