question: 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 ( ) ) ; }
target:  Adds a session to be managed. This operation can not be undone.