CIPL-Senthil
asked on
Avoiding Same User Logging in Multiple Systems
Hi Experts,
I have built a web application using J2EE. I would like to avoid same user logging in multiple systems.
Please advice.
Regards
Vijay T. Prabakar
I have built a web application using J2EE. I would like to avoid same user logging in multiple systems.
Please advice.
Regards
Vijay T. Prabakar
ASKER
Hi girionis,
Say, a user with login name 'abc' and password 'abc' logs in machine1 and without logging out of machine1 the same user logs in machine2 with same login name and password ie., 'abc' and 'abc'.
How can I avoid this?
Please advice.
Regards
Vijay T. Prabakar
Say, a user with login name 'abc' and password 'abc' logs in machine1 and without logging out of machine1 the same user logs in machine2 with same login name and password ie., 'abc' and 'abc'.
How can I avoid this?
Please advice.
Regards
Vijay T. Prabakar
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think the issue is for the user *not to be* prompted for a second login if he is already logged in.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yes, make a DB query as oposed to keeping a hashmap. you make the calculations, and if you are in advantage .... make them again.
If not the best way is to always send a cookie with the user request. In this cookie you should have information about the user, for example something like login=true. Then upon each request check this cookie. If the login is true then the user is logged in, if not show the login page.