Example #1
0
 /**
  * Session write handler.
  * Do not call this method directly.
  * @param string $id session ID
  * @param string $data session data
  * @return boolean whether session write is successful
  */
 public function writeSession($id, $data)
 {
     if ($this->dbSession) {
         return $this->dbSession->writeSession($id, $data);
     } else {
         parent::writeSession($id, $data);
     }
 }