Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SetCookie.php

function SetCookie::getMaxAge

Maximum lifetime of the cookie in seconds.

Return value

int|null

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

File

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

Class

SetCookie
Set-Cookie object

Namespace

GuzzleHttp\Cookie

Code

public function getMaxAge() {
    return null === $this->data['Max-Age'] ? null : (int) $this->data['Max-Age'];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal