Ankur --

If you use cookies for session tracking, mulitple browser instances on the
same machine is gonna be a problem for you.

If you need different sessions for different browser instances :

a.
Direct your webserver / servlet engine to use URL rewriting over cookies for
session tracking.

b.
Rewrite your dynamically generated URL / targets with the encodeURL API. All
the URLs generated thereafter will have unique session id attached to the
end. Even for different browser instances, you will then be able to have
different sessions.

If you forget the first part, the encodeURL will fail to work as expected.

Check the archives of this list for more inputs ..

Shashank


>From: Ankur Mehta <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: *** MULTIPLE SESSIONS ON SAME PC *** Posible???
>Date: Tue, 1 Feb 2000 08:46:54 -0800
>Received: from [204.160.241.28] by hotmail.com (3.2) with ESMTP id
>MHotMailBA6071C5008AD82197B3CCA0F11CED1B1; Tue Feb 01 10:32:46 2000
>Received: from mail (mail.java.sun.com [204.160.241.28])by
>mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA03546;Tue, 1 Feb 2000
>10:18:17 -0800 (PST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with          spool id 5269986 for [EMAIL PROTECTED]; Tue, 1
>Feb 2000          09:27:55 -0800
>Received: from mail (mail.java.sun.com [204.160.241.28]) by
>mail.java.sun.com          (8.9.3+Sun/8.9.3) with ESMTP id JAA17617 for
>      <[EMAIL PROTECTED]>; Tue, 1 Feb 2000 09:17:44 -0800 (PST)
>From [EMAIL PROTECTED] Tue Feb 01 10:36:48 2000
>Message-ID:  <[EMAIL PROTECTED]>
>Sender: "A mailing list for discussion about Sun Microsystem's Java
>      Servlet API Technology." <[EMAIL PROTECTED]>
>
>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

______________________________________________________
Get Your Private, Free Email 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

Reply via email to