lantheL
Convex Community2y ago
13 replies
lanthe

convex-session-id doesn't consistently get set

I'm using Sessions following this blog post:
https://stack.convex.dev/track-sessions-without-cookies

About 20% of the time, convex-session-id never gets set in Session storage, so my session disappears when I reload the tab. When I reference ctx.sessionId in my *WithSession backend functions, I get a consistent value, even though convex-session-id isn't set in the browser.

Am I holding it wrong? Is this a bug w Convex?
Advice and resources for session tracking per-tab or per-browser via localStorage / sessionStorage using React Context, hooks, and some utilities to m...
Track Sessions Without Cookies
Was this page helpful?