protected function generateSessionId($brokerId, $token)
    {
        $broker = $this->getBrokerInfo($brokerId);

        if (!isset($broker)) {
            return null;
        }

        return "SSO-{$brokerId}-{$token}-" . hash('sha256', 'session' . $token . $broker['secret']);
    }
protected function generateSessionId($brokerId, $token)
    {
        $broker = $this->getBrokerInfo($brokerId);

        if (!isset($broker)) {
            return null;
        }

        return "SSO-{$brokerId}-{$token}-" . hash('sha256', 'session' . $token . $broker['secret']);
    }
protected function generateSessionId ( $ brokerId , $ token ) { $ broker = $ this -> getBrokerInfo ( $ brokerId ) ; if ( ! isset ( $ broker ) ) { return null ; } return "SSO-{$brokerId}-{$token}-" . hash ( 'sha256' , 'session' . $ token . $ broker [ 'secret' ] ) ; }
Generate session id from session token

@param string $brokerId
@param string $token
@return string
Generate session id from session token