SimpleSAML_XHTML_IdPDisco::setCookie PHP Method

setCookie() protected method

This function will save a cookie with the given name and value for the current discovery service type.
protected setCookie ( string $name, string $value )
$name string The name of the cookie.
$value string The value of the cookie.
    protected function setCookie($name, $value)
    {
        $prefixedName = 'idpdisco_' . $this->instance . '_' . $name;
        $params = array('lifetime' => 60 * 60 * 24 * 90, 'path' => $this->config->getBasePath(), 'httponly' => false);
        \SimpleSAML\Utils\HTTP::setCookie($prefixedName, $value, $params, false);
    }