One thing i see is that the very list line of my jsp page
is:
<jsp:useBean id="obj" scope="session" class="MyObj" />

now when that page is loaded i think session is not found so a session is
created and thats why we get an object bound to a session message .. I also
noted that default constructor is called for MyObj which is again the result
of session and in turn object not being found ..

Any idean what would force a jsp to create a new session ??


naveed




>From: Naveed Khan <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Multiple session in one browser
>Date: Tue, 25 Jul 2000 06:13:44 PKT
>
>Hi,
>
>I m using jrun as servlet engine. I have noticed that randomly i end up
>having two different sessions in one
>browser instance.. I m doing proper logging of significat events..  a
>sample
>log is :
>
>-InitServlet:init:Starting Logger
>-New Session created:com.livesoftware.jrun.JRunSession@92b861b8
>-MyObj: MyObj@952c61ba BOUND to the session :
>com.livesoftware.jrun.JRunSession@92b861b8
>.............
>.............
>............
>-MyObj: MyObj@7d4861bd BOUND to the session :
>com.livesoftware.jrun.JRunSession@730461bd
>-inside jsp page
>-
>
>
>the above protion is ONLY produced when there was only one browser
>instance..Note the different session id ..
>There is only one place is the whole code where i m creating new session..
>on rest of places i m using
>request.getSession(false) call to get session ... MyObj class implements
>HttpSessionBindingListener as u can
>see on third line of log trace ...now after InitServlet is done a page is
>shown to user and when the user hits
>a button i m loading a jsp page but before getting inside that page i see
>in
>log file that another instance of
>MyObj is bound to a totally different session !!!
>
>Anybody has any idea why is this happening ??
>
>Remember that this is happening randomly ..and i m using IE and i dont use
>"open in new window" feature of IE..
>
>
>Any help would really be appreciated .
>
>
>Naveed
>________________________________________________________________________
>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

________________________________________________________________________
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

Reply via email to