Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PhpBridgeSessionStorage.php

function PhpBridgeSessionStorage::clear

Overrides NativeSessionStorage::clear

File

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

Class

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

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function clear() : void {
    // 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();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal