You are here

private function MetadataBag::stampCreated in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/MetadataBag.php \Symfony\Component\HttpFoundation\Session\Storage\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 164

Class

MetadataBag
Metadata container.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

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