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.
精彩评论