Marie

When you declare a bean to be in the session scope, the server sends a piece
of information to the browser that the browser then includes in all
subsequent requests. This is called a "session ID", and it's used by the
server to recognize a set of requests from the same browser as related: in
other words, as part of the same session.
This session can be ended explicitly by the application, or the JSP
container can end it after a period of user inactivity (the default value is
typically 30 minutes after the last request). After that, the session ID is
not more valid.

How can you solve it? I don't use JRun. I use Tomcat, and I don't know, but
I suppose you can change this default value. See your JRun documentation and
how to configure it.

Information extracted from the book:

   JAVASERVER PAGES
   Author:Hans Bergsten
   O'Reilly
   ISBN: 156592746X

>From: Marie Josephe Plainecassagne <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Beans and scope
>Date: Wed, 28 Feb 2001 18:21:28 +0100
>
>I have an application where I use Java beans in JSP pages.
>
>I declare these beans with a scope=session parameter. However, after a
>while of inactivity on the browser side, the data included in these
>beans seem to be invalidated. It looks like a garbage collector beeing
>done. This "timeout" seems to be something like 15 minutes...
>
>Here is a typical declaration :
><jsp:useBean id="headerBean" class="mypackage.orderHeaderBean"
>scope="session"/>
>
>I am using JSP 1.0 with Jrun 2.3.3 + patch 157.
>
>I have checked many documentation. I have found somewhere that the
>session may have a limited life time of 30 minutes when there is no
>activity. Can you confirm?
>
>Marie-Jo
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>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

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to