function MockFileSessionStorage::destroy
Deletes a session from persistent storage. Deliberately leaves session data in memory intact.
2 calls to MockFileSessionStorage::destroy()
- MockFileSessionStorage::regenerate in vendor/
symfony/ http-foundation/ Session/ Storage/ MockFileSessionStorage.php - Regenerates id that represents this storage.
- MockFileSessionStorage::save in vendor/
symfony/ http-foundation/ Session/ Storage/ MockFileSessionStorage.php - Force the session to be saved and closed.
File
-
vendor/
symfony/ http-foundation/ Session/ Storage/ MockFileSessionStorage.php, line 115
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
private function destroy() : void {
set_error_handler(static function () {
});
try {
unlink($this->getFilePath());
} finally {
restore_error_handler();
}
}