Package org.apache.tomcat.core

Examples of org.apache.tomcat.core.ServerSession.recycle()


      // This shouldn't happen ( maybe we can try again ? )
      ServerSession oldS=findSession( newId );
      if( oldS!=null) {
    // that's what the original code did
    oldS.setState( ServerSession.STATE_EXPIRED );
    oldS.recycle();
    oldS.setState( ServerSession.STATE_INVALID );
      }
      sessions.put( newId, session );
      return (session);
  }
View Full Code Here


    se.log( "Session expired " + sses);
      }
      sses.setState( ServerSession.STATE_EXPIRED );
      // After expiring it, we clean up.
      if( debug > 0 ) se.log( "Recycling " + sses);
      sses.recycle();
      sses.setState( ServerSession.STATE_INVALID );
  }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.