How to stop multiple login with same userid and password? - ASP
-
Hi, I want to know how can we prevent multiple login in ASP site using same userid and password? Design suggestion are most welcome !!! Thanks,
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me Visit:www.OracleQuest.com
-
Hi, I want to know how can we prevent multiple login in ASP site using same userid and password? Design suggestion are most welcome !!! Thanks,
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me Visit:www.OracleQuest.com
My suggestions are as 1. Add new column in Master table, isLoggedIn(Bool Type) 2. Create New table to keep log of user i.e. when logged in/out. When Uses logs in the System, LoggedIn bit should be set to 1. When he logs out set this bit to Zero. Note: The issue with this aproach is that you need to make sure that user always out. Secondly, you can use a hash table to store the information of logged in user. Place this hash table in Application variable. When user tries to login, check if he is already logged in or not. Do add a time stamp of login. Update this timestamp regularly to check whether user is active.