Store session to database not working #435
Replies: 1 comment 1 reply
-
|
You're using https://github.com/lexik/LexikJWTAuthenticationBundle for JWT based authentication into the Symfony backend. By default, JWT is a stateless system that doesn't create traditional web sessions based around an authentication cookie. The session provider inside https://github.com/ratchetphp/Ratchet (and inherently what this bundle builds around) relies on traditional web sessions. So, to use JWT with this bundle, you'd actually need a custom authentication provider which can process your JWT data instead of the default provider which uses cookie-based sessions. #225 has some feedback and a working example around that. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I use ReactJs in frontend and Symfony 5 on backend.
Now I have working login but I need share session to my websocket server. I Want store session to database to table session. https://symfony.com/doc/current/session/database.html
security:yaml
routes.yaml
services.yaml - I register PDO session handler and expect that session will be store to database
framework.yaml
When I login to appliacation now, session table in database is still empty. Do I something wrong?
Beta Was this translation helpful? Give feedback.
All reactions