How to stop multiple login with same userid and password? - ASP
-
Hi, I know this query is not related with ASP.NET but didn't find suitable forum to post this valid web situation. 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 know this query is not related with ASP.NET but didn't find suitable forum to post this valid web situation. 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
Jaiprakash M Bankolli wrote:
I want to know how can we prevent multiple login in ASP site using same userid and password?
Using
databases
. When User login into your application , check is there any entry in the database with that user name or not. If not, make an entry and enter into the application. If yes, message that some one has already logged in into the application it the same credentials. Check it on Loginif(UserIsInApplication(UserID)) { Alert("Already Logged in with the same credentials..." } else { MakeDBEntry(UserID); LoginApplicatin(UserID); }
Note : You have to implement all those methods, I have given just for your understanding Remove the DataEntry from database when user log off Application , other wise user never be logged into the application . Here is another Tricks , What happend , If user close the browser instead of Click on "Logoff" :) [Added]
Jaiprakash M Bankolli wrote:
know this query is not related with ASP.NET
Apologies. I didn't read this section . Extremely sorry. [/Added]
cheers, Abhijit
-
Jaiprakash M Bankolli wrote:
I want to know how can we prevent multiple login in ASP site using same userid and password?
Using
databases
. When User login into your application , check is there any entry in the database with that user name or not. If not, make an entry and enter into the application. If yes, message that some one has already logged in into the application it the same credentials. Check it on Loginif(UserIsInApplication(UserID)) { Alert("Already Logged in with the same credentials..." } else { MakeDBEntry(UserID); LoginApplicatin(UserID); }
Note : You have to implement all those methods, I have given just for your understanding Remove the DataEntry from database when user log off Application , other wise user never be logged into the application . Here is another Tricks , What happend , If user close the browser instead of Click on "Logoff" :) [Added]
Jaiprakash M Bankolli wrote:
know this query is not related with ASP.NET
Apologies. I didn't read this section . Extremely sorry. [/Added]
cheers, Abhijit
I had same design in mind but had stuck with the point that you have mentioned "What will happen , If user close the browser instead of Click on "Logoff"... So if you have some more idea in mind let me know ... Thanks anyways !!
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me Visit:www.OracleQuest.com
-
I had same design in mind but had stuck with the point that you have mentioned "What will happen , If user close the browser instead of Click on "Logoff"... So if you have some more idea in mind let me know ... Thanks anyways !!
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me Visit:www.OracleQuest.com
Jaiprakash M Bankolli wrote:
So if you have some more idea in mind let me know
I had made a javascript function , that will call on the page unload if and only if , the user close the Browser ([X]), Alt+F4 and From Task Manager. on that function , I have open a popup ( Location will not be visible to user means top=10000, left =200000 like that ) and from there I have callled the server side code to clear database ;). What about yours ?
cheers, Abhijit
-
Jaiprakash M Bankolli wrote:
So if you have some more idea in mind let me know
I had made a javascript function , that will call on the page unload if and only if , the user close the Browser ([X]), Alt+F4 and From Task Manager. on that function , I have open a popup ( Location will not be visible to user means top=10000, left =200000 like that ) and from there I have callled the server side code to clear database ;). What about yours ?
cheers, Abhijit
That sounds good idea.. Let me try that, how did you trap browser close From Task Manager.
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me Visit:www.OracleQuest.com
-
That sounds good idea.. Let me try that, how did you trap browser close From Task Manager.
Regards, Jaiprakash M Bankolli jaiprakash.bankolli@gmail.com My Blog Suggestions for me Visit:www.OracleQuest.com
just try this ant let me know
//Delete User Log From Database on Browser Close function DeleteUserLog() { // Check Browser Close [X] , Alt+F4 , File -> Close if(window.event.clientX < 0 && window.event.clientY <0) { window.open("Removelogs.aspx", "OpenWindow_Close_Session",'left=12000,top=1200,width=10,height=1'); } }
cheers, Abhijit