sidebase / nuxt-session

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.
https://sidebase.io/nuxt-session/
MIT License
188 stars 19 forks source link

Sessions and data do not persist #71

Closed L422Y closed 1 year ago

L422Y commented 1 year ago

Environment

Nuxi 3.0.0

RootDir: /Development/nuxt/testing/nuxt-session
Nuxt project info:

Reproduction

Fresh install of the playground, tried doing a stackblitz but the playground won't launch there.

Describe the bug

The session ID changes on every refresh. count in the playground doesn't persist.

Additional context

No response

Logs

No response

L422Y commented 1 year ago

For posterity, the issue was secure cookies being blocked by the browser during local development.

            cookieSecure: process.env.NODE_ENV === "production",

Appears to have remedied the issue

FernandoJRR commented 1 year ago

It also happens to me, where did you configure the cookieSecure attribute?