public function PhpBridgeSessionStorage::clear

Clear all session data in memory.

Overrides NativeSessionStorage::clear

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/PhpBridgeSessionStorage.php, line 58

Class

PhpBridgeSessionStorage
Allows session to be started by PHP and managed by Symfony2

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function clear() {

  // clear out the bags and nothing else that may be set
  // since the purpose of this driver is to share a handler
  foreach ($this->bags as $bag) {
    $bag
      ->clear();
  }

  // reconnect the bags to the session
  $this
    ->loadSession();
}