When the user logs in, create a text file on a shared location. Write the file name to the user table in the database. When the a user logs in, loop through the listed files, attempting to open them. If you can open a file, that user exited the application. If you can't open the text file, the user is still in the system.
>What are the alternatives?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer