Deletes a session from persistent storage.
Deliberately leaves session data in memory intact.
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php, line 116
Class
- MockFileSessionStorage
- MockFileSessionStorage is used to mock sessions for
functional testing when done in a single PHP process.
Namespace
Symfony\Component\HttpFoundation\Session\Storage
Code
private function destroy() {
if (is_file($this
->getFilePath())) {
unlink($this
->getFilePath());
}
}