public function SessionInterface::migrate

Migrates the current session to a new session id while maintaining all session attributes.

@api

Parameters

Boolean $destroy Whether to delete the old session or leave it to garbage collection.:

integer $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

Boolean True if session migrated, false if error.

1 method overrides SessionInterface::migrate()
Session::migrate in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php
Migrates the current session to a new session id while maintaining all session attributes.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/SessionInterface.php, line 101

Class

SessionInterface
Interface for the session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function migrate($destroy = false, $lifetime = null);