Exemple #1
0
 /**
  * Save cookie with the given name and value.
  *
  * This function will save a cookie with the given name and value for the current discovery
  * service type.
  *
  * @param string $name The name of the cookie.
  * @param string $value 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->getBaseUrl(), 'httponly' => false);
     \SimpleSAML\Utils\HTTP::setCookie($prefixedName, $value, $params, false);
 }