public function set($key, $value, $expire = 3600, $path = '/')
    {
        if ($expire == false) {
            setcookie($key, serialize($value), false, $path);
        } else {
            setcookie($key, serialize($value), time() + $expire, $path);
        }
    }