When the user logs out normally, close it and delete it.
If the user logged out improperly, delete it when you check it.
>filename in the DB. I put it in the user table, so it's associated with their login. Keep the file open exclusive while the user is logged in. If they log out, delete the file. If they crash or reboot, check the user table on login. If you can't open the text file, the user is still logged in.
>
>
>That's a good idea, but I can't figure out how to get rid of that file that's open in exclusive use.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer