You are here

public function MetadataBag::stampNew in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Session/Storage/MetadataBag.php \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag::stampNew()

Stamps a new session's metadata.

Parameters

int $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.

File

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

Class

MetadataBag
Metadata container.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function stampNew($lifetime = null) {
  $this
    ->stampCreated($lifetime);
}