void addNonExpiringSession(InternalSession session){
  if (session.willExpire()) {
    throw new IllegalStateException("Tried to add session which would expire to NonExpiringSessionManager");
  }
  session.setMaxSessionTime(NON_EXPIRING_SESSION_LENGTH_MINUTES);
  session.setMaxIdleTime(refreshPeriodInMinutes * 2);
  updateSession(session);
  nonExpiringSessions.add(session.getID());
}

void addNonExpiringSession ( InternalSession session ) { if ( session . willExpire ( ) ) { throw new IllegalStateException ( "Tried to add session which would expire to NonExpiringSessionManager" ) ; } session . setMaxSessionTime ( NON_EXPIRING_SESSION_LENGTH_MINUTES ) ; session . setMaxIdleTime ( refreshPeriodInMinutes * 2 ) ; updateSession ( session ) ; nonExpiringSessions . add ( session . getID ( ) ) ; }
adds a session to be managed . this operation can not be undone .
