예제 #1
0
 protected function simulateSessionStart(SessionHandler $handler)
 {
     $handler->open('dummy', 'test');
     $data = $handler->read('example');
     $_SESSION = unserialize($data) ?: array();
     // Instead of session_decode
 }
 /**
  * Read session data
  * @link http://php.net/manual/en/sessionhandlerinterafce.read.php
  * @param string $session_id
  * @return string
  */
 public function read($session_id)
 {
     return $this->handler->read($session_id);
 }