From c3361d540ff6ae5e4e0d90516f0a5b631d921039 Mon Sep 17 00:00:00 2001 From: UnSleep Date: Fri, 1 Mar 2013 13:35:27 +0100 Subject: [PATCH] Update MongoSession.php With this you can use the created conection using this... $db === $session->_mongo(); $collection = $db->MyCollection; now im going to try to open it before the session and handle the previusly opened ;) --- MongoSession.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MongoSession.php b/MongoSession.php index 17c45b8..3b7e1b2 100644 --- a/MongoSession.php +++ b/MongoSession.php @@ -387,5 +387,13 @@ private function _lock($id) throw new Exception('Could not obtain a session lock.'); } } + + public function _connection() { + return $this->_connection; + } + + public function _mongo() { + return $this->_mongo; + } }