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

Breadcrumb

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

function MetadataBag::stampNew

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Session/MetadataBag.php \Drupal\Core\Session\MetadataBag::stampNew()

Stamps a new session's metadata.

Parameters

int|null $lifetime Sets the cookie lifetime for the session cookie. A null value: will leave the system settings unchanged, 0 sets the cookie to expire with browser session. Time is in seconds, and is not a Unix timestamp.

2 calls to MetadataBag::stampNew()
MetadataBag::stampNew in core/lib/Drupal/Core/Session/MetadataBag.php
Stamps a new session's metadata.
MetadataBag::stampNew in core/lib/Drupal/Core/Session/MetadataBag.php
Stamps a new session's metadata.
1 method overrides MetadataBag::stampNew()
MetadataBag::stampNew in core/lib/Drupal/Core/Session/MetadataBag.php
Stamps a new session's metadata.

File

vendor/symfony/http-foundation/Session/Storage/MetadataBag.php, line 76

Class

MetadataBag
Metadata container.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function stampNew(?int $lifetime = null) : void {
    $this->stampCreated($lifetime);
}
RSS feed
Powered by Drupal