public function PhpBridgeSessionStorage::clear in Zircon Profile 8
Same name and namespace in other branches
- 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\StorageCode
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();
}