You are here

public function SetCookie::setExpires in Zircon Profile 8.0

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

Set the unix timestamp for which the cookie will expire

Parameters

int $timestamp Unix timestamp:

1 call to SetCookie::setExpires()
SetCookie::__construct in vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php

File

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

Class

SetCookie
Set-Cookie object

Namespace

GuzzleHttp\Cookie

Code

public function setExpires($timestamp) {
  $this->data['Expires'] = is_numeric($timestamp) ? (int) $timestamp : strtotime($timestamp);
}