public function SetCookie::setExpires in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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\CookieCode
public function setExpires($timestamp) {
$this->data['Expires'] = is_numeric($timestamp) ? (int) $timestamp : strtotime($timestamp);
}