I'm not sure what the exact problem is that you are trying to deal
with. Generally multiple sessions aren't a problem if you design each web
page as a complete transaction. This means that the session is only used
to track identification and general session preferences. If you want to
ensure a certain sequence of pages are visited in order, you can either
include information on the last page accessed in your session data and
check it on the next access (and decide how to fail the request), or use
URL re-writing to handle your sessions (not perfect, and can be a lot of
work). There is no convention as to how to handle sessions (read:
cookies) on the client side.
On Tue, 1 Feb 2000, Ankur Mehta wrote:
> Hi All,
>
> Is it possible to have more than one sessions from same PC/Browser?
> This is what I noticed:
> I call a servlet from Netscape (Say N1) which starts a new session with statement
> in its post method
> HTTPSession session = req.getSession(true);
>
> Then I start another Netscape (Say N2) by clicking on icon and call the same servlet:
>
> But It returns the same session. The session created by N1. I want to have
> multiple sessions running simultaneusly working independent of each other.
> Is it possible to do so?
>
> Any help will be appreciated.
>
> -Ankur
>
___________________________________________________________________________
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