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\StorageCode
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');
}