You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "amol (JIRA)" <ax...@ws.apache.org> on 2005/01/27 15:25:17 UTC

[jira] Created: (AXIS-1786) SimpleSessionHandler : returns invalid session

SimpleSessionHandler : returns invalid session 
-----------------------------------------------

         Key: AXIS-1786
         URL: http://issues.apache.org/jira/browse/AXIS-1786
     Project: Axis
        Type: Bug
  Components: Basic Architecture  
    Versions: 1.2RC2    
 Environment: Linux RHEL3, Axis1.2rc2 with tomcat 5.5.4
    Reporter: amol



If a session object is accessed after it is invalidated but before 
it is reaped, a activeSessions.get(id) call will return that invalid 
session object.


//SimpleSessionHandler.java
package org.apache.axis.handlers; 
.......
  private long reapPeriodicity = 30;
............

SimpleSession session = (SimpleSession)activeSessions.get(id);
           


>>>>>>> if (session == null) {   <<<<<< shouldnt we check here whether session is invalidated or not 
/// it shud be:  if (session == null || session.gettimeout()  == -1 )


                // Must have timed out, get a new one.
                id = getNewSession();
                session = (SimpleSession)activeSessions.get(id);
 }





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira