aspose file tools*
The moose likes Servlets and the fly likes how to avoid multiple session for the same username Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to avoid multiple session for the same username" Watch "how to avoid multiple session for the same username" New topic
Author

how to avoid multiple session for the same username

srini carry
Ranch Hand

Joined: Nov 30, 2007
Posts: 83
I need suggestions on implementing single user login , like My system has a user with a username jdavid and my application should not allow two different sessions for the same username jdavid , can one session peep into all other session
to see if the any has a usernaem jdavid, I am basically looking for some pattern if any available for restricting multiple session for the same username . like jaas or any other security api provides this ?
Dave Wingate
Ranch Hand

Joined: Mar 26, 2002
Posts: 262
You can keep track of current sessions in a single web application running on a single application server by implementing an HttpSessionListener: javax.servlet.http.HttpSessionListener


Fun programming etcetera!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to avoid multiple session for the same username
 
Similar Threads
single code base responding to multiple urls?
Session problem
HttpSession and not allowing multiple users to log in from same browser
getUserpricipal()
Immediate suggestion please on connectivity