Sunday 15 July 2012

javascript - How can I parse PHP user details (session) to Node.js server? -



javascript - How can I parse PHP user details (session) to Node.js server? -

so have 2 pages: chat page runs on node.js , socket.io (websockets). , main page user logins etc... want create when user logins on main page -> validates details -> stores user id in session , goes chat he's identified userid.

oh yeah , user accounts stored on mysql.

you can parse php (file-based) sessions node module groan. however, improve solution utilize improve session store such redis. illustration of sharing sessions between node , php using redis can found here.

javascript php mysql node.js

No comments:

Post a Comment