php - Restrict websocket connection to one per user -


is there way, that?.

basically, want restrict logged user (login sessions in php) 1 tab / browser window.

if has 1 connection (opened tab/ window), don't wanna allow opening one.

maybe when open websocket, record in session indication websocket session open ($_session['websocket_is_open'] = true), , check every time user tries open new websocket.


Comments

Popular posts from this blog

python 2.7 - Chat Solution for Mobile App -

jquery - Detect current Section with javascript -