Hi guys
I am currently using this code to detect Idle time and auto log of users after 30 mins if they have had ZERO DB activity.
http://support.microsoft.com/?id=210297
it works a treat - even if the back end corrupts wich saves me loads of time as we have 100 users and most if not all always forghet to log off !
however, i have had an idea and i wanted a second opinion before i got the work started. using this code, could i set up a new table called tbllogoff and have one field in it - LOGG_OFF. this is set to NO as default.
then modify the code above with an IFF statement at the top to first look at this table and check the value of this field - if it = YES then run the IDLETIMEDETECTED producre and quit the application.
then i could simply go into the back end, change the VALUE TO yes on my tlblogoff.LOGG_OFF field and it will automatically shut down all users in the database - also running the save command first : )
any thoughts on this - would it work ? has it been done before ?
cheers
DARREN
I am currently using this code to detect Idle time and auto log of users after 30 mins if they have had ZERO DB activity.
http://support.microsoft.com/?id=210297
it works a treat - even if the back end corrupts wich saves me loads of time as we have 100 users and most if not all always forghet to log off !
however, i have had an idea and i wanted a second opinion before i got the work started. using this code, could i set up a new table called tbllogoff and have one field in it - LOGG_OFF. this is set to NO as default.
then modify the code above with an IFF statement at the top to first look at this table and check the value of this field - if it = YES then run the IDLETIMEDETECTED producre and quit the application.
then i could simply go into the back end, change the VALUE TO yes on my tlblogoff.LOGG_OFF field and it will automatically shut down all users in the database - also running the save command first : )
any thoughts on this - would it work ? has it been done before ?
cheers
DARREN