lithium\net\http\Request::_parseCookies()

protected method

Parse Cookie header.

Parameters

  • string $header

    Cookie header.

Source

	protected function _parseCookies($header) {
		$cookies = array_map('trim', array_filter(explode('; ', $header)));
		foreach ($cookies as $cookie) {
			list($name, $value) = array_map('urldecode', explode('=', $cookie, 2)) + ['',''];
			$this->cookies($name, $value);
		}
	}