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

Breadcrumb

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

function MetadataBag::stampCreated

2 calls to MetadataBag::stampCreated()
MetadataBag::initialize in vendor/symfony/http-foundation/Session/Storage/MetadataBag.php
Initializes the Bag.
MetadataBag::stampNew in vendor/symfony/http-foundation/Session/Storage/MetadataBag.php
Stamps a new session's metadata.

File

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

Class

MetadataBag
Metadata container.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

private function stampCreated(?int $lifetime = null) : void {
    $timeStamp = time();
    $this->meta[self::CREATED] = $this->meta[self::UPDATED] = $this->lastUsed = $timeStamp;
    $this->meta[self::LIFETIME] = $lifetime ?? (int) \ini_get('session.cookie_lifetime');
}
RSS feed
Powered by Drupal