robinvdvleuten / vuex-persistedstate

💾 Persist and rehydrate your Vuex state between page reloads.
https://npm.im/vuex-persistedstate
MIT License
5.77k stars 378 forks source link

question: ssr nuxt cookies & secure cookies #403

Closed stephenjason89 closed 3 years ago

stephenjason89 commented 3 years ago

If i will be using cookies together with SSR, what are the performance implications of having cookies not only on the client side but also server side? This is for an app that potentially be thousands of users, thus creating thousands of sessions each with cookies to the server.

Second question, Can I use secure cookies?

robinvdvleuten commented 3 years ago

When you have thousands of users using cookies, that won't be a performance bottleneck. You'll probably run sooner into issues with your database etc. To use secure cookies you need to have a SSL connection (https) with the server, this can be an issue in your local development environment.

stephenjason89 commented 3 years ago

Thank you for taking the time to reply :)