You are here

public function SetCookie::setMaxAge in Zircon Profile 8

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

Set the max-age of the cookie

Parameters

int $maxAge Max age of the cookie in seconds:

File

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

Class

SetCookie
Set-Cookie object

Namespace

GuzzleHttp\Cookie

Code

public function setMaxAge($maxAge) {
  $this->data['Max-Age'] = $maxAge;
}