If a JSP pages uses a session bean, not EJB but just a server side java bean,
    and that bean is recompiled, the server will detect this and reload it, but
    it will also dump and re-start a users present session.  This makes sense.
    Otherwise there would be an attempt  to use the old session bean object
    in the context of the new compiled session bean.
   
    In summary the session will appear time-out any time a related bean
    being used in session scope is recompiled.
 
 
STeve Punte
e-Business Software Architect
Technologent Inc
[EMAIL PROTECTED]
----- Original Message -----
Sent: Monday, July 10, 2000 7:24 PM
Subject: Re: Session time out TOOOO early!

I have the same problem, mail me if u received solution
----- Original Message -----
Sent: Monday, July 10, 2000 3:19 PM
Subject: HELP: Session time out TOOOO early!

Help:
 
    I'm having serious problem with the servlet session timing-out
    way before it should.  I'm running Orion on Solaris, and typically
    only see the problem when development is active (i.e. team
    members changing server side java bean files).
 
 
    I have set the session time-out to 6 hours in the web.xml file as show below:
 
<web-app>
        <servlet>
                <servlet-name>snoop</servlet-name>
                <display-name>snoop</display-name>
                <servlet-class>SnoopServlet</servlet-class>
        </servlet>
        <session-config>
                <session-timeout>360</session-timeout>
        </session-config>
        <login-config>
                <auth-method>BASIC</auth-method>
        </login-config>
</web-app>
    My JSP file is as simple as possible:
 
<%@ page language="java" session="true" %>
<%@ page import="java.util.*" %>
<html>
<head>
<title><%= "Session Bug" %></title>
</head>
<body>
<br><br>
  Session Information:
  <br>Last Accessed <%= new Date( session.getLastAccessedTime()) %>
  <br>Creation Time <%= new Date( session.getCreationTime() ) %>
  <br>ID <%= session.getId() %>
  <br>Max Interval <%= session.getMaxInactiveInterval() %>
</body>
</html>
    In the above examples, the creation time typically only hold from 5 minutes to 15 minutes,
    and will then move forward to the present time forgetting all other session information.
   
    Any suggestion greatly appreciated:
 
 
STeve Punte
e-Business Software Architect
Technologent Inc
[EMAIL PROTECTED]

Reply via email to