public static function keepSession() { if (array_key_exists('HPROSE_COOKIE_MANAGER', $_SESSION)) { self::$cookieManager = $_SESSION['HPROSE_COOKIE_MANAGER']; } register_shutdown_function(array('HproseBaseHttpClient', 'hproseKeepCookieInSession')); }
public function __construct($url = '') { parent::__construct($url); $this->curl = curl_init(); }