public function write($sessionId, $data)
    {
        $maxlifetime = (int) ini_get('session.gc_maxlifetime');

        $mergeSql = $this->getMergeSQL();

        $result = $this->db->query($mergeSql)
            ->bind(':id', $sessionId)
            ->bind(':data', $data)
            ->bind(':lifetime', $maxlifetime)
            ->bind(':time', time())
            ->execute();

        if ($result !== false) {
            return true;
        }

        // Session Save faile
        throw new Exception('Fail to save session to database');
    }