java - Prevent users from login to same system using different browsers (IE and FF) -
we have web application users can login.
now want same user should not able login using different browsers.
basically user using 2 different browsers (ie , ff) can log in same account @ same time. when hit login button, possible invalidate other logins account.
what best possible approach this?
ps: using struts, spring , hibernate in our web application.
thanks !
doing on server-side best bet. can keep tract of logged-in users in application context.
well, little hint. make use of servlet filter, authfilter, , make validation, may isalreadyloggedin(), on there beside other validations username/password etc.. after having check in place, either -- depends want user trying log in, show message "user logged-in", or can let user log-in , invalidate previous session. discussed here.
Comments
Post a Comment