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.
・There is a cookie that holds the session ID set in the HTTP request.
・The session on the server no longer exists on the storage
・Initial server access
During server processing, event.context.session.user = { name: 'abc' } is set to the session, but it is not saved on the server's storage.
Ask your question
The following conditions occur:
・There is a cookie that holds the session ID set in the HTTP request. ・The session on the server no longer exists on the storage ・Initial server access
During server processing,
event.context.session.user = { name: 'abc' }
is set to the session, but it is not saved on the server's storage.The results of debugging index.mjs are below.
The $1 comment line above is output as null, so it seems that the storage is not saved.
When I debug the getSession function, I see that the getCurrentSessionId function returns null.
The output content of the $2,3 comment line above is as follows.
The version I'm using is below.
"@sidebase/nuxt-session": "^0.2.7"
Additional information
No response