Subject | Re: Get connected users |
---|---|
Author | Adam |
Post date | 2008-10-07T22:18:25Z |
--- In firebird-support@yahoogroups.com, bartsmissaert@... wrote:
monitoring tables. In 2.1, you can query MON$ATTACHMENTS for this
information.
Secondly, it is not brain surgery to just hold the information in the
database yourself within 1.5, Add a record when your application(s)
connect, delete it when they disconnect and create a secondary thread
to update a heartbeat timestamp so that is someone exits your
application in a hard manner (end task / cut power to client), that
connection can be disregarded after a reasonable time.
Adam
>Firstly, it is your choice to use an older version of Firebird without
> > So do you understand that a Classic
> > client process sees only the user that
> > is involved with *its* connection to the server?
>
> Yes, thanks, I do now.
> Pity that this information is not simply just held
> in the database.
monitoring tables. In 2.1, you can query MON$ATTACHMENTS for this
information.
Secondly, it is not brain surgery to just hold the information in the
database yourself within 1.5, Add a record when your application(s)
connect, delete it when they disconnect and create a secondary thread
to update a heartbeat timestamp so that is someone exits your
application in a hard manner (end task / cut power to client), that
connection can be disregarded after a reasonable time.
Adam