public function SessionInterface::invalidate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Session/SessionInterface.php \Symfony\Component\HttpFoundation\Session\SessionInterface::invalidate()
Invalidates the current session.
Clears all session attributes and flashes and regenerates the session and deletes the old session from persistence.
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.
Return value
bool True if session invalidated, false if error.
1 method overrides SessionInterface::invalidate()
- Session::invalidate in vendor/
symfony/ http-foundation/ Session/ Session.php - Invalidates the current session.
File
- vendor/
symfony/ http-foundation/ Session/ SessionInterface.php, line 73
Class
- SessionInterface
- Interface for the session.
Namespace
Symfony\Component\HttpFoundation\SessionCode
public function invalidate($lifetime = null);