Symfony\Component\HttpFoundation\Session\Storage\MetadataBag::stampNew
Stamps a new session's metadata.
Signature
public function stampNew([integer
$lifetime = null] )
Parameters
$lifetime
— integer- 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.