S
S
sevic2020-11-06 14:20:49
PHP
sevic, 2020-11-06 14:20:49

How to make websocket server authorization on php server?

I found this article here: live-notes.ru . There, the guy authorizes an http request from the websocket server (node ​​js) to the main server (php), simulating a request from a client browser with php session cookies. In php it checks if the user is logged in or not. Question: how reliable is it, because cookies can be substituted by others and also by a user agent?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question