----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: VadivelMohanakrishnan Message 4 in Discussion Hi, Let me first explain a very common solution for handling this multiple login issue: 1. Set a flag (for ex: IsLoggedAlready) in the Database and once a user logs in IsLoggedAlready would be set to True. 2. Once the user logs out IsLoggedAlready would be set to False. 3. Updating IsLoggedAlready would takes place from Session_OnStart & Session_OnEnd method of Global.asa(x). The main issue which we need to consider is: What if you put a "lock" similar to the one explained above on the user record once they logged in, and then they close their browser? You don't have a reliable way of determining whether their session has expired so that you can remove the lock. That is as per the logic we would have written the "unlock" code in Session_OnEnd but it would never fire. Don't panic there is a way out. Have a look @ http://www.eggheadcafe.com/articles/20030418.asp --- this has a good explanation and the a sample source code for handling this multiple login issues. Best Regards, Vadivel Walking on water and developing software from a specification are easy if both are frozen. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
