Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
296 views
in Technique[技术] by (71.8m points)

angular - SocketIO cookie is not updated on server when token is resetted/cleared on client

Im currently working on a socket connection between my server & client.

I want to audit all connections, right now when I log out and clear the token property from the cookies client side and send an emit to the server, the token is still inside the cookies of the handshake, when the emit gets recorded on the server.

Is there a way to reset or reload the cookies without dis- and reconnecting the socket connection? (I'm using ngx-socket-io/client & socket-io/server as the implementation library)

question from:https://stackoverflow.com/questions/65650957/socketio-cookie-is-not-updated-on-server-when-token-is-resetted-cleared-on-clien

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...