You are here

public function PhpBridgeSessionStorage::clear in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/PhpBridgeSessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage::clear()

Clear all session data in memory.

Overrides NativeSessionStorage::clear

File

vendor/symfony/http-foundation/Session/Storage/PhpBridgeSessionStorage.php, line 57

Class

PhpBridgeSessionStorage
Allows session to be started by PHP and managed by Symfony.

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