private function MockFileSessionStorage::destroy

Deletes a session from persistent storage. Deliberately leaves session data in memory intact.

1 call to MockFileSessionStorage::destroy()
MockFileSessionStorage::regenerate in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/MockFileSessionStorage.php
Regenerates id that represents this storage.

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());
  }
}