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
Post a Comment