You are here

public function SetCookie::setExpires in Lockr 7.3

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 220

Class

SetCookie
Set-Cookie object

Namespace

GuzzleHttp\Cookie

Code

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