SimpleSAML_AuthMemCookie::getCookieName PHP Méthode

getCookieName() public méthode

This function retrieves the name of the cookie from the configuration.
public getCookieName ( ) : string
Résultat 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;
    }