/**
  * Write session data to the SessionHandler backend.
  *
  * @param   string $id   The session identifier.
  * @param   string $data The session data.
  *
  * @throws  \Exception
  * @return  boolean  True on success, false otherwise.
  *
  * @since   2.0
  */
 public function write($id, $data)
 {
     try {
         return $this->db->write($id, $data);
     } catch (\Exception $e) {
         throw $e;
     }
 }