From fb6351c60f09c777c0910f773c9e5ffa829e584f Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Thu, 26 Apr 2012 21:14:07 -0400 Subject: [PATCH] [Sessions] API fix in accordance w/ Symfony BC breaks --- .../Component/Session/Storage/VirtualSessionStorage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ratchet/Component/Session/Storage/VirtualSessionStorage.php b/src/Ratchet/Component/Session/Storage/VirtualSessionStorage.php index 795e4f4..3f6dba4 100644 --- a/src/Ratchet/Component/Session/Storage/VirtualSessionStorage.php +++ b/src/Ratchet/Component/Session/Storage/VirtualSessionStorage.php @@ -19,6 +19,7 @@ class VirtualSessionStorage extends NativeSessionStorage { $this->setSaveHandler($handler); $this->saveHandler->setId($sessionId); $this->_serializer = $serializer; + $this->setMetadataBag(null); } /** @@ -44,7 +45,7 @@ class VirtualSessionStorage extends NativeSessionStorage { /** * {@inheritdoc} */ - public function regenerate($destroy = false) { + public function regenerate($destroy = false, $lifetime = null) { // .. ? }