Some background. I created a PHP app, but I've now realized that a portion of the app would be better served in Node.js. This part of my app could essentially be on another subdomain, like app.mydomain.com
The piece that I'm not sure about is if I can use PHP to authenticate the user before they access the part served by Node.js. The app would be under a subdomain of my main domain.
If that's possible, how do I find out how to do it? I've looked around and haven't found anything from a simple google search.