Previous Page
_fetch()

Solar_Http_Request_Adapter_Stream
_parseCookie()

Next Page
_prepareContext()

_parseCookie()

protected array _parseCookie ( string $text )

Parses a "Set-Cookie" header value and returns it as an array.

Inherited from Solar_Http_Request_Adapter.

Parameters

  • (string) $text: The Set-Cookie text string value.

Returns

  • (array) An array with keys for each element of the cookie: name, value, expire, etc.

Description

Parses a "Set-Cookie" header value and returns it as an array.