Then that's a bug in WebLogics server. I've just tried this under Tomcat 3.2
and it works exactly as I'd expect.
I get a session, I put an object in the session. I see a biund message. If I
hit refresh in the browser then I get the same session and no bound/unbound
messages.
Download Tomcat and try your code there,
Kevin Jones
DevelopMentor
www.develop.com
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nitin Khattar
> Sent: 20 September 2000 06:50
> To: [EMAIL PROTECTED]
> Subject: Re: How to Identify whether a session has expired
>
>
> Hey Kevin
>
> I tried the example given in Jason Hunter's book (eg 7.8) and it does work
> the way Jason Hunter describes it.
> It works with both IE and Netscape.
>
> The output in Weblogic Console is under...
>
> Wed Sep 20 11:13:30 GMT+05:30 2000:<I> <ServletContext-General> UNBOUND as
> bindings.listener from
> OchOZl2EQhZZrTvIBc8UPKqqCf82ylEUCiWYPbTHoH8z20W3SZbYOrna2hy06zhXh3
> gbROEfKUQ3
> |5452551393737820203/-1062718900/6/7001/7001/7002/7002/7001/-1
> Wed Sep 20 11:13:30 GMT+05:30 2000:<I> <ServletContext-General> BOUND as
> bindings.listener to
> OchOZl2EQhZZrTvIBc8UPKqqCf82ylEUCiWYPbTHoH8z20W3SZbYOrna2hy06zhXh3
> gbROEfKUQ3
> |5452551393737820203/-1062718900/6/7001/7001/7002/7002/7001/-1
>
> As you can see the object is unbound and then rebound to the same
> session(indicated by the same Weblogic session id in both cases).
>
> So even if the session has not expired unbound and bound methods are
> called.......
>
> regards
> Nitin
>
>
> ----- Original Message -----
> From: "Kevin Jones" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 18, 2000 11:10 PM
> Subject: Re: How to Identify whether a session has expired
>
>
> > Don't believe everything you read ;-)
> >
> > Kevin Jones
> > DevelopMentor
> > www.develop.com
> >
> > > -----Original Message-----
> > > From: A mailing list about Java Server Pages specification
> and reference
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Nitin Khattar
> > > Sent: 18 September 2000 16:21
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: How to Identify whether a session has expired
> > >
> > >
> > > Actually you have to excuse me for not trying this out
> myself. I read in
> > > Jason Hunter's book in the Session Tracking chapter
> > > which mentions that this happens. In fact it has an example which
> > > illustrates this.
> > >
> > > ----- Original Message -----
> > > From: "Kevin Jones" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, September 18, 2000 8:34 PM
> > > Subject: Re: How to Identify whether a session has expired
> > >
> > >
> > > > This SHOULDN'T happen - which browser/servlet container are
> you using,
> > > >
> > > > Kevin Jones
> > > > DevelopMentor
> > > > www.develop.com
> > > >
> > > > > -----Original Message-----
> > > > > From: A mailing list about Java Server Pages specification
> > > and reference
> > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Nitin Khattar
> > > > > Sent: 18 September 2000 13:55
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: How to Identify whether a session has expired
> > > > >
> > > > >
> > > > > I meant when you click 'refresh' or 'reload' on the browser (and
> > > > > not reload
> > > > > the browser!) the object bound to a session are unbound and then
> > > > > rebound.So
> > > > > these methods are called whenever you click on 'refresh' or
> > > > > 'reload' buttons
> > > > > on the browser.
> > > > >
> > > > > Sorry for not being clear!
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Kevin Jones" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, September 18, 2000 6:17 PM
> > > > > Subject: Re: How to Identify whether a session has expired
> > > > >
> > > > >
> > > > > > But the session will expire when you reload the browser!
> > > > > >
> > > > > > HttpSession uses 'non-durable' cookies, i.e. they are
> > > in-memory only,
> > > if
> > > > > you
> > > > > > shut down the browser then the cookie is unloaded, when you
> re-open
> > > the
> > > > > > browser and go back to the site then the cookie has to be
> re-created
> > > by
> > > > > the
> > > > > > server.
> > > > > >
> > > > > > If you want persistent sessions you need to look at the
> > > Cookie class,
> > > > > you'll
> > > > > > then need to roll-your-own session management at the server,
> > > > > >
> > > > > > Kevin Jones
> > > > > > DevelopMentor
> > > > > > www.develop.com
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: A mailing list about Java Server Pages specification
> > > > > and reference
> > > > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Nitin Khattar
> > > > > > > Sent: 18 September 2000 12:33
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: Re: How to Identify whether a session has expired
> > > > > > >
> > > > > > >
> > > > > > > But these methods are called even when you Reload the browser
> (and
> > > the
> > > > > > > session has not expired)
> > > > > > > ----- Original Message -----
> > > > > > > From: "Kevin Jones" <[EMAIL PROTECTED]>
> > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > Sent: Monday, September 18, 2000 4:59 PM
> > > > > > > Subject: Re: How to Identify whether a session has expired
> > > > > > >
> > > > > > >
> > > > > > > > If you mean an HttpSession -
> > > > > > > >
> > > > > > > > Create an object that implements
> > > HttpSessionBindingListener, call
> > > > > > > > session.setAttribute(myObj). The HttpSessionBindingListener
> > > > > > > will be called
> > > > > > > > (valueUnbound(...) ) when the session expires,
> > > > > > > >
> > > > > > > > Kevin Jones
> > > > > > > > DevelopMentor
> > > > > > > > www.develop.com
> > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: A mailing list about Java Server Pages specification
> > > > > > > and reference
> > > > > > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> Narayanaswamy,
> > > > > Kumaran
> > > > > > > > > (CTS)
> > > > > > > > > Sent: 18 September 2000 04:57
> > > > > > > > > To: [EMAIL PROTECTED]
> > > > > > > > > Subject: How to Identify whether a session has expired
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Hi
> > > > > > > > > Is there any method to find whether a session has
> > > been expired?
> > > > > > > > > with regards,
> > > > > > > > > Kumaran
> > > > > > > > > ________________________________________________
> > > > > > > > > Cognizant Technology Solutions India Ltd,
> > > > > > > > > 1st Floor ,T.S.140 No 2 & 9,
> > > > > > > > > C.P.T Road .Taramani
> > > > > > > > > Chennai - 600 113.
> > > > > > > > > Phone(0ff): 044 - 2354281/2354411 Extn: 4443
> > > > > > > > > EMail : [EMAIL PROTECTED]
> > > > > > > > > _________________________________________________
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > This e-mail and any files transmitted with it are for the
> sole
> > > > > > > > > use of the intended recipient(s) and may contain
> confidential
> > > and
> > > > > > > > > privileged information.
> > > > > > > > > If you are not the intended recipient, please contact
> > > the sender
> > > > > > > > > by reply e-mail and destroy all copies of the
> > > original message.
> > > > > > > > > Any unauthorised review, use, disclosure, dissemination,
> > > > > > > > > forwarding, printing or copying of this email or
> any action
> > > taken
> > > > > > > > > in reliance on this e-mail is strictly
> > > > > > > > > prohibited and may be unlawful.
> > > > > > > > >
> > > > > > > > > Visit us at http://www.cognizant.com
> > > > > > > > >
> > > > > > > > >
> > > ==================================================================
> > > > > > > > > =========
> > > > > > > > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > > body: "signoff
> > > > > > > > > JSP-INTEREST".
> > > > > > > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > > > > > > >
> > > > > > > > > http://java.sun.com/products/jsp/faq.html
> > > > > > > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > > > > > >
> > > > > > > >
> > > > > > >
> ==================================================================
> > > > > > > =========
> > > > > > > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff
> > > > > > > JSP-INTEREST".
> > > > > > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > > > > > >
> > > > > > > > http://java.sun.com/products/jsp/faq.html
> > > > > > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > > > > > >
> > > > > > >
> > > > > > >
> ==================================================================
> > > > > > > =========
> > > > > > > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> > > > > > > JSP-INTEREST".
> > > > > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > > > > >
> > > > > > > http://java.sun.com/products/jsp/faq.html
> > > > > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > > > >
> > > > > >
> > > > > ==================================================================
> > > > > =========
> > > > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > > > JSP-INTEREST".
> > > > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > > > >
> > > > > > http://java.sun.com/products/jsp/faq.html
> > > > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > > > >
> > > > >
> > > > > ==================================================================
> > > > > =========
> > > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > > > JSP-INTEREST".
> > > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > > >
> > > > > http://java.sun.com/products/jsp/faq.html
> > > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > >
> > > >
> > > ==================================================================
> > > =========
> > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > >
> > > > http://java.sun.com/products/jsp/faq.html
> > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > >
> > >
> > > ==================================================================
> > > =========
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> ==================================================================
> =========
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets