protected function simulateSessionCommit(SessionHandler $handler)
 {
     $data = serialize($_SESSION);
     // Instead of session_encode
     $handler->write('example', $data);
     $handler->close();
 }
 /**
  * Write session data
  * @link http://php.net/manual/en/sessionhandlerinterafce.write.php
  * @param string $session_id
  * @param string $session_data
  * @return bool
  */
 public function write($session_id, $session_data)
 {
     return $this->handler->write($session_id, $session_data);
 }