E
E
EpicUsaMan2016-05-28 16:25:29
PHP
EpicUsaMan, 2016-05-28 16:25:29

How to parse cookies in websockets?

How to parse cookies in websockets?
(PHP SOCKET)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rou1997, 2016-05-28
@Rou1997

Cookies refer to the HTTP protocol, what about WebSockets?

P
Petr Marochkin, 2016-05-28
@petun

Pick them up on the client using a jQuery Cookie, for example, and send them in a socket request as json.
As mentioned above, cookies are part of the http protocol. They simply do not exist in web sockets.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question