pls share your ideas to avoid the multiple login.....
How to avoid multiple user to enter inlogin
hi if we have set flag in user field ,the flag only change if the user click log out, suppose the user directly close the browser how the flag will be change ....
vijayPosted Jan 19, 2011, 11:26 PM
i didnt get your point ..how we can match log time......
But anyway i ll find one solution for this problem.......Better it may useful to everyone.....plz check out my blog
http://vbdotnetaddict.blogspot.com chec the blog......
Suthish NairPosted Jan 19, 2011, 4:10 PM
If the user directly closes the window, then while during next login check the time difference
of any old unsuccessful logouts (only those users still not logged out) and new logins.
Alert the user saying your old session is not successfully logged out or terminated.
This will prompt users to do best practices by logging out your application.
Dharmesh SharmaPosted Jan 19, 2011, 7:49 AM
vijayPosted Jan 19, 2011, 2:36 AM
Vijay YadavPosted Jan 19, 2011, 2:05 AM
You can write that on page unload event i.e. Page_Unload ok!!!
Thanks
Vijay
vijayPosted Jan 18, 2011, 8:44 AM
Vijay YadavPosted Jan 18, 2011, 7:39 AM
Well on form closing event you have to write the same code what you are writing on the logout to set the flag 0. ok.
Thanks
Vijay Yadav
vijayPosted Jan 18, 2011, 7:24 AM
Vijay YadavPosted Jan 18, 2011, 6:35 AM
The idea is take one field named flag in the database and take datatype int. Whenever any user successfully logged-in set the flag to 1 and on sign-out set it to 0 and while log-in check whether the flag contain 1 or 0. It's so simple, i hope you will get it.
In case of any query feel free to ask. Looking forward to hear from you
Thanks
Vijay Yadav
ShankeyPosted Jan 18, 2011, 2:30 AM
I also recommend you do the same thing suggested on the following li
Avoid Multiple Login