You are here

public function SetCookie::setSecure in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php \GuzzleHttp\Cookie\SetCookie::setSecure()

Set whether or not the cookie is secure

Parameters

bool $secure Set to true or false if secure:

File

vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php, line 243

Class

SetCookie
Set-Cookie object

Namespace

GuzzleHttp\Cookie

Code

public function setSecure($secure) {
  $this->data['Secure'] = $secure;
}