Nuxt session middleware to get a persistent session per app user, e.g., to store data across multiple requests. The nuxt session module provides the useSession() composable out of the box and sets up API endpoints to interact with your session to make working with sessions feel like a breeze.
Currently we store sessions on the server, but the is a known pattern to encrypt the data and store it on the client, removing a requirement for state preservation whatsoever. Possible implementation of this approach is vvo/iron-session (originally referenced in #15.
Known problems with this approach:
Storage size (cookie is limited to 4096 bytes)
Migrations/remote clearing of session
We should evaluate this approach and propose technical solution.
From my perspective it's a good candidate for the driver option (e.g. driver: 'stateless')
Describe the feature
Currently we store sessions on the server, but the is a known pattern to encrypt the data and store it on the client, removing a requirement for state preservation whatsoever. Possible implementation of this approach is
vvo/iron-session
(originally referenced in #15.Known problems with this approach:
We should evaluate this approach and propose technical solution. From my perspective it's a good candidate for the
driver
option (e.g.driver: 'stateless'
)Additional information
No response