You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i am try to use middleware to check if user have auth to connect. I follow the document to create("https://socket.io/how-to/use-with-express-session"), but i still cannot get the username in socket.request.session.
When user enter right account and password, i record the username
req.session.username= username;
And check if username in session.username, but username doesn't in session
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i am try to use middleware to check if user have auth to connect. I follow the document to create("https://socket.io/how-to/use-with-express-session"), but i still cannot get the username in socket.request.session.
When user enter right account and password, i record the username
And check if username in session.username, but username doesn't in session
How can i fix it?
Beta Was this translation helpful? Give feedback.
All reactions