ghedipunk / PHP-Websockets

A Websockets server written in PHP.
BSD 3-Clause "New" or "Revised" License
913 stars 375 forks source link

Feature Request: Parse cookies from headers #44

Open ghedipunk opened 8 years ago

ghedipunk commented 8 years ago

Cookies are available in the HTTP headers sent during the handshake. Parse the cookies out of them, especially session cookies.

Bonus: Add a way to get the session data into the user object, if the developer wants them.

ghedipunk commented 8 years ago

Final catalyst (it's been in the back of my head for about a month now, but this is the last push) and notes on how I'll implement it:

http://stackoverflow.com/questions/31528104/accessing-session-in-php-command-line/31530072#31530072