I know what you want to do.  In the web environment, it is impossible.

For every solution you can think of, I can come up with at least 2 "what 
if" scenarios that will invalidate your logic.
I've been through this with at least 5 different Product Managers and 
there is just no way to handle it.

Sorry if this is only discouraging news, but it is reality.

Good Luck

James

Aravapalli, Udaya wrote:

>Hi 
>
>        I want to check if an user tries to login with an userId for
>which a session is already existing and show a message.
>
>        This can also be applied if two users want to share the same
>userId and try to login at the same time. 
>        Whenever a session is being created by the user , I want to
>store       the userId in the database using the valueBound method in
>HttpSessionBindingListener and remove it from the Database when the
>session is invalidated using the valueUnbound method. But   this will
>not work if the user does not explicitly invalidate the session (like
>closing the browser).Then the session will remain active until  the
>session time out has reached. Is there any way to determine an browser
>closing action by the user and invalidate the session..
>
>thanks 
>Uday 
>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to