You are here

public function SetCookie::setExpires in Auth0 Single Sign On 8.2

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);
}