erikras / erikras/react-redux-universal-hot-example
Is it possible to replace cookie sessions with localStorage?
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
I am working on an universal app and we cannot depend on cookies. Is it possible to have the user session saved in local storage instead of a cookie?
I know localStorage cannot be used on the server side, so perhaps, the user session could be loaded after server side rendering and before client side rendering. Would this be ok?
Contributor guide
Research direction
The issue names no files or tests. Start by tracing the existing cookie-backed session flow across server-side rendering and client-side rendering, then determine whether a localStorage-based alternative can preserve the required session behavior; done would require an agreed design and validation of its server/client constraints.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- express, javascript, react
- Domain
- authentication, full-stack
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100