Answer the question
In order to leave comments, you need to log in
How to pass data from PHP to NodeJS?
Hello.
I am looking for an authorization method for soxket.io, provided that the site and the main authorization are in PHP, and some other services are in NodeJS.
Decided to use tokens. But not a problem, PHP generates tokens, and sends it from JS.
So here's how to pass the token from PHP to NodeJS. Maybe you can somehow make shared cookies?
Answer the question
In order to leave comments, you need to log in
Use a shared database. Generate a token in php and put it in the database. Take a node from the same base. And vice versa.
elephant.io will solve your problems. Set up sending in 10 minutes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question