Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session does not persist with reactive front-ends like React / React Admin #13

Closed
alanredmaiar opened this issue Jun 1, 2022 · 1 comment

Comments

@alanredmaiar
Copy link

Dear Alex!

Im using you SessionMiddleware, and for static fronts, like Swagger UI in FastAPI, works nice, the session (session_id) persists, but when I use a React frontend, the session is being regenerated everytime, so I cannot control it and persist data and so on.

Is there something that Im missing?

My desire is to, in someway, persist the session when the actions are performed from the same user agent (same browser i.e.). I confirm that, this behaviour exactly ocurrs with static ones but reactive ones is creating a new id (the middleware) in each request.

Thanks in advance!

@alex-oleshkevich
Copy link
Owner

Make sure:

  1. your browser sends session cookie
  2. the path is not restricted by cookie security rules
  3. subdomain, if any, is not restricted by cookie security rules
  4. check same_site rule

@alex-oleshkevich alex-oleshkevich closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants