Restrict Multiple login
-
Hii, I am working on a Web Application Asp.NET 1.1 I want to restrict multiple login at the same time in my web application. eg, If someone is logged in with Username 'mubashir', no one else wold be able to log in with username 'mubashir' till the first one is logged out. How do I go about doing this? thanks, Mubashir
Every job is a self portrait of the person who did it.
-
Hii, I am working on a Web Application Asp.NET 1.1 I want to restrict multiple login at the same time in my web application. eg, If someone is logged in with Username 'mubashir', no one else wold be able to log in with username 'mubashir' till the first one is logged out. How do I go about doing this? thanks, Mubashir
Every job is a self portrait of the person who did it.
-
One way could be to have a boolean field in the database for the user and once the user is logged in you can make that field to true and check it with that when the user is trying to log for the next time.
Best Regards, Apurva Kaushal
-
Thanx, But i need to reset that bool field when the user will log off. What if the user logs off in an abnormal way? Ho do I reset it then? regards, Mubashir
Every job is a self portrait of the person who did it.
-
One way could be to have a boolean field in the database for the user and once the user is logged in you can make that field to true and check it with that when the user is trying to log for the next time.
Best Regards, Apurva Kaushal
you can set all the user logged in the application variable means as a arraylist. when somebody logout the session_end event fired. you can trap a user & delete it from application arraylist.
Pankaj Gupta (Take it easy)
-
you can set all the user logged in the application variable means as a arraylist. when somebody logout the session_end event fired. you can trap a user & delete it from application arraylist.
Pankaj Gupta (Take it easy)