diff --git a/include/class.ostsession.php b/include/class.ostsession.php index 439c745c2b7d898eb26216683c444da2db28eb22..55c12493297b1a803810526c6dd09bf9655d993f 100644 --- a/include/class.ostsession.php +++ b/include/class.ostsession.php @@ -292,12 +292,13 @@ extends SessionBackend { if ($data = $this->memcache->get($key)) break; } + } // No session data on record -- new session $this->isnew = $data === false; - return $data; + return $data ?: ''; } function update($id, $data) { @@ -311,6 +312,9 @@ extends SessionBackend { if (!$this->memcache->replace($key, $data, 0, $this->getTTL())); $this->memcache->set($key, $data, 0, $this->getTTL()); } + + return true; + } function destroy($id) { @@ -321,6 +325,8 @@ extends SessionBackend { $this->memcache->replace($key, '', 0, 1); $this->memcache->delete($key, 0); } + + return true; } function gc($maxlife) {