Hello Peter!

PCE> I have a question/problem related to the session object, which I hope I can
PCE> get some help with.

PCE> The problem is as follows. A user accesses the application for the first time. 
The initial JSP
PCE> page uses a bean to create the top object in the application hierarchy. The top 
object calls
PCE> the getSession in the httpServletRequest class.

PCE> A number of objects are created, most of which have a reference to the top object.
PCE> When the user exits the application, a welcome back page is shown for a few 
seconds and then
PCE> the browser window is closed. At this time, the top object sets a shutdown timer, 
to allow messages
PCE> from the backend (intended for the customer) to drain out. Some 15 seconds later 
the session object
PCE> is invalidated.

PCE> The problem I have is when the customer starts up a new window and re-access the 
initial JSP page
PCE> again, before the shutdown timer has expired. In this case I would like the 
customer to start fresh all
PCE> over again.

'Some 15 seconds later the session object is invalidated'. How do you
do that? Do not return from the service method in the servlet for
15 seconds and then call session.invalidate()?

Anyway, whatever you're doing I beleive that the servlet/jsp that
outputs the last window (that is auto-closed) could well do
session.invalidate() somewhere in the course of its operation
and this will have the effect of the user never interacting
with that session ever again.

--
Best regards,
 Anton                            mailto:[EMAIL PROTECTED]

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to