function MetadataBag::stampNew
Same name in this branch
- 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\StorageCode
public function stampNew(?int $lifetime = null) : void {
$this->stampCreated($lifetime);
}