Hi Susan,
> that only one
> session is being created for all the users which are logging in. so i
This is very strange, since the sole purpose of a session object is to
maintain state between a client session and a servlet. Is your servlet maybe
implementing the singlethreadmodel?
Anyway read this, it may help you in finding the problem:
http://java.sun.com/docs/books/tutorial/servlets/client-state/session-tracki
ng.html
good luck
Joost
> -----Original Message-----
> From: Susan Kundu [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 18 augustus 2000 8:19
> To: [EMAIL PROTECTED]
> Subject: regarding session
>
>
> 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. 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?
>
> ______________________________________________________________
> _____________
> 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
>
___________________________________________________________________________
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