Identifying Users Online Now

Contains tips for configurators working with Aware IM
Post Reply
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Identifying Users Online Now

Post by tford »

For a list of users online now:

1) Add attribute to RegularUser BO:

RegularUser.LoggedOnNow (Yes/No type)


2) Add rule to RegularUser BO:

If NMB_OF_SESSIONS(RegularUser)>0 Then
RegularUser.LoggedOnNow='Yes'
ELSE
RegularUser.LoggedOnNow='No


3) Run a process with these rules:

FIND ALL RegularUser
UPDATE RegularUser
DISPLAY 'Users Online Now'


4) Query will have the following FIND:
FIND RegularUser WHERE RegularUser.LoggedOnNow='Yes'
Tom - V8.8 build 3137 - MySql / PostGres
nlarson
Posts: 597
Joined: Thu Apr 14, 2011 7:56 pm

Post by nlarson »

very helpful, thanks Tom!
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Identifying Users Online Now

Post by weblike »

Hi,

If users closes the browser without clicking the "logout" button -> than the users still appears online.

Do you know how to kick off those zombie online users?

Thx,
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Identifying Users Online Now

Post by tford »

When those users time out, they should disappear from the list.
Tom - V8.8 build 3137 - MySql / PostGres
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Identifying Users Online Now

Post by weblike »

Yes,
Unfortunately I have a huge time out set, because my users complained about that they are timed out to quickly.

Don't know how to find a compromise here :)...
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Post Reply