PHP - Node communication/auth/registration?
Hey, how can I make PHP page with login fields save users ID in sessions and then in Node.js server ( site.com:3000 ) get that session/user ID?
Hey, how can I make PHP page with login fields save users ID in sessions and then in Node.js server ( site.com:3000 ) get that session/user ID?
I would have said use MySQL to store sessions, but many people are saying use Redis:
http://simplapi.wordpress.com/2012/04/13/php-and-node-js-session-share-redi/
http://www.slideshare.net/leeboynton/integrating-nodejs-with-php-march-2013-1
Also side note:
I want to see how many users are online from external PHP site.
You should be able to poll the Redis service to get that number, then output to any form you like.
Is there actually any way to get list of all connected clients IP addresses?
As I said before, that ca be done. I don't write code for people (for free), but you should be able to find a good how-to for Redis and active session counts.