public function SessionInterface::migrate 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::migrate()
Migrates the current session to a new session id while maintaining all session attributes.
Parameters
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.
Return value
bool True if session migrated, false if error.
1 method overrides SessionInterface::migrate()
- Session::migrate in vendor/
symfony/ http-foundation/ Session/ Session.php - Migrates the current session to a new session id while maintaining all session attributes.
File
- vendor/
symfony/ http-foundation/ Session/ SessionInterface.php, line 87
Class
- SessionInterface
- Interface for the session.
Namespace
Symfony\Component\HttpFoundation\SessionCode
public function migrate($destroy = false, $lifetime = null);