Hi ,

I would like to know how the Jrun Server 2.3.3 handles Session timeout.

My server configuration is :
i)    Jrun 2.3.3 
ii)   Session timeout parameter set to 30 minutes.
iii)  The JSP Program queried the Jrun server well before 30 minutes, but I
get the Session timeout message.

Following code is used to get the Session in the first page that is invoked
by the user.

============================================================================
========
   HttpSession EBUSSession = request.getSession(true);
   EBUSSession.setMaxInactiveInterval(3600000);   // 60 minutes
============================================================================
========

I am using following code to test whether the Session is timed out or Not
(in all the pages other than the first page)

============================================================================
========
HttpSession EBUSSession = request.getSession(false);
try
{
   if ( (EBUSSession == null) ||
(EBUSSession.getValue("sessionTimeout").toString().equals("false")) )
   {
     response.sendRedirect("ptsSessionTimeout.jsp");
   }
}
catch(Exception e)
{
  Log.log(e, "ptsNewProj.jsp", "INFO",  "Session timed out");
  response.sendRedirect("ptsSessionTimeout.jsp");
}
============================================================================
========





Regards,
Santosh



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to