You are here

protected function Bakery::setCookie in Bakery Single Sign-On System 7.3

Set cookie.

Parameters

string $name Cookie name.:

string $data Cookie data.:

2 calls to Bakery::setCookie()
Bakery::setSsoCookie in ./bakery.inc
Create SSO cookie for account.
Bakery::setSubCookie in ./bakery.inc
Create cookie used during sub-site registration.

File

./bakery.inc, line 202

Class

Bakery

Code

protected function setCookie($name, $data) {
  $cookie_secure = ini_get('session.cookie_secure');
  setcookie($name, $data, $_SERVER['REQUEST_TIME'] + $this->expiration, '/', $this->domain, empty($cookie_secure) ? FALSE : TRUE);
}