>From: Susan Kundu <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: regarding session
>Date: Fri, 18 Aug 2000 11:49:11 +0530
>
>hi all,
>i am new to servlets and am facing problems with sessions. what can be done
>if i want that a user should not be able to log on twice from two different
>browser windows at the same time?
>i am trying to do this by creating a session. the problem is that only one
>session is being created for all the users which are logging in.
No Sessions are created per user.
>so i
>cannot differentiate between users using the session id since only one
>session id is there for all of them. what can be done to create a unique
>session for each user. with getSession(true), it creates a session once and
>all the users are using the same session. is there some way to pass a null
>session id from the server in case a second user tries to log on. in that
>case it will create another session for that user. similarly if it is
>possible that if the same user tries to log on again, its session id is
>passed by the server so that its sessions can be invalidated and a new
>session is created for him, to prevent double logon?
>
>________________________________________________________________________
You can store username-Session in a Hashtable in the LoginServlet so that
when a same user logs in his session can got & invalidated.THis is what you
want to do Right!
Bye,
Jiger
___
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html