function MockFileSessionStorage::regenerate
Overrides MockArraySessionStorage::regenerate
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ MockFileSessionStorage.php, line 63
Class
- MockFileSessionStorage
- MockFileSessionStorage is used to mock sessions for functional testing where you may need to persist session data across separate PHP processes.
Namespace
Symfony\Component\HttpFoundation\Session\StorageCode
public function regenerate(bool $destroy = false, ?int $lifetime = null) : bool {
if (!$this->started) {
$this->start();
}
if ($destroy) {
$this->destroy();
}
return parent::regenerate($destroy, $lifetime);
}