S
S
Sergey2016-09-30 21:54:33
PHP
Sergey, 2016-09-30 21:54:33

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

2 answer(s)
N
Nwton, 2016-09-30
@Nwton

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.

R
Roman Basharin, 2016-12-28
@Hellek

elephant.io will solve your problems. Set up sending in 10 minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question