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

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -