I've run an amphp websocket server to manage an online fantasy hockey team draft this weekend, and I ran into er... Interesting Problems™ that I believe are related to sessions. I hacked some rather naive and dumb static property on the server itself and while it appeared to function locally with various tabs, it was rather broken when multiple people from the same wifi tried to connect. Interestingly, anyone outside of said lan had correct session info.
I think I see a way of improving that through manually passing a session cookie to websocket handshake, storing that to a db and pass it …