1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace Symfony\Component\HttpFoundation\Session\Storage;
- class PhpBridgeSessionStorage extends NativeSessionStorage
- {
-
- public function __construct($handler = null, MetadataBag $metaBag = null)
- {
- $this->setMetadataBag($metaBag);
- $this->setSaveHandler($handler);
- }
-
- public function start()
- {
- if ($this->started) {
- return true;
- }
- $this->loadSession();
- return true;
- }
-
- public function clear()
- {
-
-
- foreach ($this->bags as $bag) {
- $bag->clear();
- }
-
- $this->loadSession();
- }
- }
|