$storage
$storage
__construct(\Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface $storage = null, \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface $attributes = null, \Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface $flashes = null, callable $usageReporter = null) : mixed
\Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface | $storage | |
\Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface | $attributes | |
\Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface | $flashes | |
callable | $usageReporter |
invalidate(int $lifetime = null) : bool
Invalidates the current session.
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. |
migrate(bool $destroy = false, int $lifetime = null) : bool
Migrates the current session to a new session id while maintaining all session attributes.
bool | $destroy | Whether to delete the old session or leave it to garbage collection |
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. |