#1 2011-10-31 15:19:56

lele9
Member
Registered: 2011-10-28
Posts: 170

list of connected users

in a server side application how can i retrieve a list of connected clients or user (if i use authentication per user)?

Offline

#2 2011-10-31 16:26:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: list of connected users

See the session management implementation in the documentation.

It will tell you how to access the currently opened sessions.

Offline

#3 2011-10-31 17:32:37

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: list of connected users

in the documentation i found tauthsession that it's that i need, i believe.
but i don't understand if i must manage this istance or its automatic when a client set an user authentication.
and if its automatic, how can i access to all istance of tauthsession object?
thanks!

Offline

#4 2011-11-01 09:05:47

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: list of connected users

Checkout the source code: there is a list of TAuthSession instances in TSQLRestServer.fSession.

Offline

#5 2011-11-01 10:59:34

lele9
Member
Registered: 2011-10-28
Posts: 170

Re: list of connected users

thanks a lot!

Offline

Board footer

Powered by FluxBB