Subject | Re: disconnecting users |
---|---|
Author | dan_olson01 |
Post date | 2004-06-23T17:32:22Z |
Thanks to both of you for your responses. The concept of UserSession
table should work if I can capture the Session/Process ID and if I
can kill that process based on the Session/Process ID.
Thanks again
Dan O
--- In firebird-support@yahoogroups.com, Werner Cloete <werner@f...>
wrote:
contents and any attachments remain the property of VR Services (Pty)
Ltd unless so stated by contract.
9300 and thereafter delete the message. VR Services (Pty) Ltd does
not accept liability for any personal views expressed in this message.
table should work if I can capture the Session/Process ID and if I
can kill that process based on the Session/Process ID.
Thanks again
Dan O
--- In firebird-support@yahoogroups.com, Werner Cloete <werner@f...>
wrote:
>ID, the
> Hi...
>
> <hypothetical situation>
>
> You can create a table, called UserSession, in the database.
>
> When the user logs in, an entry, containing the Session/Process
> Username, the IP Address and the Last Activity Date and Time, iswritten
> into the UserSession table.from the
>
> When the client disconnects, all the user's entries are deleted
> table (or it could be kept for audit trails, etc.). If the clientcrashes
> (network failure, machine failure, etc.) this entry's Last ActivityDate and
> Time can, for instance, have a Valid Time Period so that the entrybecomes
> invalid/removed after a certain time of "inactivity".disconnect"
>
> This Valid Time Period could also be used to cause an "auto
> from the front-end side - if the front-end, for example, has atimer running
> that checks these entries...into the
>
> </hypothetical situation>
>
> My questions:
> 1) Is this a viable solution..?
> 2) If so, how would you determine the Session/Process ID, from the
> front-end, so that the entry can be written to the table..?
> 3) Can this information be determined by the back-end and written
> table (so that the front-end does not have to do it)..?query, etc.
> 4) Can you determine, from the back-end, which user executed a
> on the database and when this was done (this could make (3)possible)..?
>overnight or
> -----Original Message-----
> From: Martijn Tonies [mailto:m.tonies@u...]
> Sent: 23 June 2004 14:25
> To: firebird-support@yahoogroups.com
> Subject: Re: [firebird-support] disconnecting users
>
>
> Hi,
>
> > Does Firebird 1.5 have the functionality like IB7's tmp$ tables? I
>
> No, it doesn't.
>
> > need away to disconnect a user that has left an app open
> > disconnect a user when maintenance is done on the db.is,
>
> If you're using "classic" I believe you can kill the process, that
> if you know which one it is.& MS SQL
>
> As for the rest: no luck.
>
> With regards,
>
> Martijn Tonies
> Database Workbench - developer tool for InterBase, Firebird, MySQL
> Server.person to whom or the entity to which it is addressed. All the
> Upscene Productions
> http://www.upscene.com
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
> This e-mail message is confidential and intended solely for the
contents and any attachments remain the property of VR Services (Pty)
Ltd unless so stated by contract.
> If you are not the intended recipient, you are prohibited fromreading, copying, using or disclosing this message to others.
> If you received this message in error, please notify the senderimmediately by replying to this e-mail or by telephoning +27 21 430
9300 and thereafter delete the message. VR Services (Pty) Ltd does
not accept liability for any personal views expressed in this message.