SimpleSAML_AuthMemCookie::getCookieName PHP Method

getCookieName() public method

This function retrieves the name of the cookie from the configuration.
public getCookieName ( ) : string
return string The name of the cookie.
    public function getCookieName()
    {
        $cookieName = $this->amcConfig->getString('cookiename', 'AuthMemCookie');
        if (!is_string($cookieName) || strlen($cookieName) === 0) {
            throw new Exception("Configuration option 'cookiename' contains an invalid value. This option should be a string.");
        }
        return $cookieName;
    }