lib/ASM/SessionManager.php
public function openSessionByID($sessionID, $userProfile = null)
    {
        $session = $this->driver->openSessionByID(
            $sessionID,
            $this,
            $userProfile
        );
        
        if ($session == null) {
            $this->invalidSessionAccessed();
        }

        return $session;
    }
public function openSessionByID($sessionID, $userProfile = null)
    {
        $session = $this->driver->openSessionByID(
            $sessionID,
            $this,
            $userProfile
        );
        
        if ($session == null) {
            $this->invalidSessionAccessed();
        }

        return $session;
    }
Opens an existing session.

Opens and returns the data for an existing session, if and only if the
client sent a valid existing session ID. Otherwise returns null.

@param array $cookieData
@param null $userProfile
@return Session|null