You are here

public function Session::migrate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Session/Session.php \Symfony\Component\HttpFoundation\Session\Session::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.

Overrides SessionInterface::migrate

1 call to Session::migrate()
Session::invalidate in vendor/symfony/http-foundation/Session/Session.php
Invalidates the current session.

File

vendor/symfony/http-foundation/Session/Session.php, line 171

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function migrate($destroy = false, $lifetime = null) {
  return $this->storage
    ->regenerate($destroy, $lifetime);
}