Replies: 2 comments 2 replies
-
Check your session settings, especially the domain for your session cookie. The session provider in Ratchet, similar to traditional HTTP requests, relies on the presence of the session cookie to be able to load the correct session, and the authentication APIs in this bundle relies on that provider loading the right session data to load the authenticated user. |
Beta Was this translation helpful? Give feedback.
-
hi mbabker, my domain is sub.test.local framework config : ` if i check the session with chrome the domain is sub.test.local but if i set explicit the name with : cookie_domain: 'sub.test.local', even if i use placeholder. it doesnt work. i cant login anymore. the login works only without any configuration. but as i said the domainname should be correct. the PostAuthenticationGuardToken is set in my database with the correct user. the session_id 07:40:45 INFO [websocket] anon-1153923466618a25fd55976381124341 disconnected ` is def. wrong. dont know why rachet takes wrong session or no session. there is only 1 session available. :( |
Beta Was this translation helpful? Give feedback.
-
Hi there,
in my securedtopichandler im getting the current logged in user. sessions are shared with pdo
on my local windows enviroment the user is anonymous instead of authorized. on my server its works well.
any ideas ?
websocket connect itself works well.
thank you .
Beta Was this translation helpful? Give feedback.
All reactions