Gokul Singh wrote:
Hans Bergsten wrote:When I had to do something similar, I maintained a Hashtable in a servlet context attribute that was keyed by username rather than by session id. My login logic (that processed the username and password) checked for the username already being in this Hashtable, and disallowed a login if it was already there. For logout, I also stuck in a session attribute which implemented HttpSessionBindingListener, so that I could remove this user's entry when the current session was invalidated. As others will undoubtedly point out, you still get to face the usual set of issues when a user has multiple windows open on the same client machine. Craig
|
- Re: Session passivation (was... Kief Morris
- Re: Session passivation (was... Kief Morris
- one session for many web sit... Mihai Popoaei
- Re: one session for many web... Craig R. McClanahan
- Re: one session for many web... cmanolache
- Re: one session for many web... Mihai Popoaei
- Re: NullPointerException from HttpSessionFacade.invali... Gokul Singh
- Re: NullPointerException from HttpSessionFacade.i... Hans Bergsten
- Re: NullPointerException from HttpSessionFaca... Gokul Singh
- Re: NullPointerException from HttpSession... Hans Bergsten
- Re: NullPointerException from HttpSessionFacade.i... Craig R. McClanahan
- Re: NullPointerException from HttpSessionFacade.invali... Gokul Singh
- Re: NullPointerException from HttpSessionFacade.invali... Greg Brouelette