original_string: protected function allowedSessionsExceeded($orderedSessions, $allowableSessions, SessionRegistry $registry)
      {
          if ($this->errorIfMaximumExceeded) {
              throw new MaxSessionsExceededException(sprintf('Maximum number of sessions (%s) exceeded', $allowableSessions));
          }
  
          // Expire oldest session
          $orderedSessionsVector = array_values($orderedSessions);
          for ($i = $allowableSessions - 1, $countSessions = count($orderedSessionsVector); $i < $countSessions; $i++) {
              $registry->expireNow($orderedSessionsVector[$i]->getSessionId());
          }
      }
code: protected function allowedSessionsExceeded($orderedSessions, $allowableSessions, SessionRegistry $registry)
      {
          if ($this->errorIfMaximumExceeded) {
              throw new MaxSessionsExceededException(sprintf('Maximum number of sessions (%s) exceeded', $allowableSessions));
          }
  
          // Expire oldest session
          $orderedSessionsVector = array_values($orderedSessions);
          for ($i = $allowableSessions - 1, $countSessions = count($orderedSessionsVector); $i < $countSessions; $i++) {
              $registry->expireNow($orderedSessionsVector[$i]->getSessionId());
          }
      }
code_tokens: protected function allowedSessionsExceeded ( $ orderedSessions , $ allowableSessions , SessionRegistry $ registry ) { if ( $ this -> errorIfMaximumExceeded ) { throw new MaxSessionsExceededException ( sprintf ( 'Maximum number of sessions (%s) exceeded' , $ allowableSessions ) ) ; } // Expire oldest session $ orderedSessionsVector = array_values ( $ orderedSessions ) ; for ( $ i = $ allowableSessions - 1 , $ countSessions = count ( $ orderedSessionsVector ) ; $ i < $ countSessions ; $ i ++ ) { $ registry -> expireNow ( $ orderedSessionsVector [ $ i ] -> getSessionId ( ) ) ; } }
docstring: Allows subclasses to customize behavior when too many sessions are detected.
  
  @param Registry\SessionInformation[] $orderedSessions   Array of SessionInformation ordered from newest to oldest
  @param int                           $allowableSessions
  @param SessionRegistry               $registry
docstring_tokens: Allows subclasses to customize behavior when too many sessions are detected .