开发者

Socket Sessions For Persistent Connections

开发者 https://www.devze.com 2022-12-24 00:13 出处:网络
I am developing a socket server where a client will be bound after being authenticated simila开发者_运维问答r to SMPP. Is there support for cookies in this regard? How do you maintain a session for so

I am developing a socket server where a client will be bound after being authenticated simila开发者_运维问答r to SMPP. Is there support for cookies in this regard? How do you maintain a session for socket client that is "logged in"?


Unlike HTTP, sockets are inherently stateful, so maintaining state is a simple matter of associating data with the current socket connection. Cookies and such like are not necessary, because the server never loses its handle on the client.

0

精彩评论

暂无评论...
验证码 换一张
取 消