Define what audit functionality is.

Can that be done as user is working within the app, or is this a User ABC
started @ and ended @ on this date?

Yes, I write an entry to the audit table indicating user ABC logged out at such and such datetime. I will probably be adding more audit functionality, and that will probably include something indicating that a user saved a record, which can occur automatically when the user shuts down.

Could that logged in status stops ABC from logging in on another machine?
 If that is true then you need to get that done first.

I have a separate table that just tracks who is currently logged in. This is used to determine whether everybody is logged out so that backups or other maintenance tasks can be done. During shutdown the user's record in that table is simply deleted. (Even if I get rid of auto-backup-on-shutdown, I will still need this table for use with the separate maintenance utility program, which has the ability to force everybody to log out.)

I am thinking I can do this stuff after the user has agreed to quit but before ON SHUTDOWN is called.

I would still want to attempt to run those processes if the program is being shut down due to an error condition, but would have to accept that they might not all run, and should implement more testing for resources and TRY...CATCH stuff.

I could set a flag indicating the processes were completed before ON SHUTDOWN so they won't be run twice.

I also liked the suggestion that I ask users if they want my application to shut down Windows after closing.

How do people feel about this approach?

Thanks.

Ken Dibble

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to