Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7376 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I know I can get a count of the active users, but can I get a list of the active 'account' name and a list of acctive 'user' names

Posted

there is a way, but it's probably a little troublesome...

u can maintain a user's table that has every username and an "Active" state field, with values 1 and 0. then each time the database is opened, an open script assigned the particular's state to 1... etc.

then when the user logs off, use a close script to assign the particular user's state to 0.

whala... now u have it, list of online users, u can also count how many users are online...

u can also use an "Online Table" instead of a "User Table", simple put an open script that adds a record to it, with Get (AccountName), then use a close script that deletes the online record. then u'll have it too...

if u maintain a user's table, i believe u can also implement an IM system using this method. by using 1's and 0's, to trigger different state at real time, event-driven scripts.

Posted

I tried something similar in the past, with mixed results. There are situations where a close script won't fire, such as an improper shut down, loss of connection, etc. As long as these things didn't happen, it worked ok. I found it more trouble then it was worth, so I just pull a list from the server. However, I like the IM thought ....

This topic is 7376 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.