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
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!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to avoid multiple session for the same username