Query connected users

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

Query connected users

#1

Postby Segi » Fri Jun 13, 2014 6:02 pm

I want to run a query against the UFS DB to get the IP address of connected users (The same info available under Help->View Connected Users)

I went to create a resource against the UFS connection but am not sure which table under the UFS schema to reference).

Where would I find this ?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Jun 16, 2014 7:18 am

We don't store this information in the database so I'm afraid there isn't a table that you can query. You can get the IP address of the current session using:

Code: Select all

var ipAddress = client.request.remoteAddr;
Perhaps you could use this to construct your own table, but you would also need to intercept the end of each session to remove completed sessions.
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#3

Postby Segi » Mon Jul 14, 2014 8:58 pm

So when I go to View Connected Users, where is this information pulled from ?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Wed Jul 16, 2014 7:07 am

It's held in memory - the licensing module within the Ebase server is responsible for this.
0 x


Who is online

Users browsing this forum: No registered users and 21 guests