Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Re: Controlling user authentication


Message #1 by "Daniel Smeltzer" <djsmeltzer@h...> on Wed, 10 Jul 2002 21:55:18
> 
> Hi everybody!
> 
> I've got a problem. My aplication was developed to allow some =
> connections at the same time with the same user and password and without 
=
> session time invalidation. But now, it's necessary to avoid all of this. 
=
> So i've thought to control the different logins with a hashtable in the =
> app context, but my problem is that i don't know when an user session =
> ends or when the nvigator is closed.
> 
> plz, can anybody tell me a way to resolve this?
> 
> thx
> 

In servlet 2.3, there is an HttpSessionListener object. These listeners 
receive messages about sessions created and destroyed.  In order to 
receive these messages, the classes implementing this interface must be 
configured in the deployment descriptor of the web application.  See the 
J2EE JavaDoc.

  Return to Index