HTTP_Client
[ class tree: HTTP_Client ] [ index: HTTP_Client ] [ all elements ]

Class: HTTP_Client_CookieManager

Source Location: /HTTP_Client-1.2.1/Client/CookieManager.php

Class Overview


Class used to store cookies and pass them between HTTP requests.


Author(s):

Version:

  • Release: 1.2.1

Methods


Inherited Variables

Inherited Methods


Class Details

[line 54]
Class used to store cookies and pass them between HTTP requests.
  • Author: Alexey Borzov <avb@php.net>
  • Version: Release: 1.2.1


[ Top ]


Method Detail

HTTP_Client_CookieManager (Constructor)   [line 78]

HTTP_Client_CookieManager HTTP_Client_CookieManager( [boolean $serializeSession = false])

Constructor

Parameters:

boolean   $serializeSession     Whether session cookies should be serialized

[ Top ]

addCookie   [line 134]

void addCookie( array $cookie)

Explicitly adds cookie to the list
  • Access: public

Parameters:

array   $cookie     An array representing cookie, this function expects all of the array's fields to be set

[ Top ]

passCookies   [line 101]

void passCookies( HTTP_Request &$request)

Adds cookies to the request
  • Access: public

Parameters:

HTTP_Request   &$request     Request object

[ Top ]

reset   [line 231]

void reset( )

Clears the $_cookies array
  • Access: public

[ Top ]

serializeSessionCookies   [line 89]

void serializeSessionCookies( boolean $serialize)

Sets whether session cookies should be serialized when serializing object
  • Access: public

Parameters:

boolean   $serialize     

[ Top ]

updateCookies   [line 147]

void updateCookies( HTTP_Request &$request)

Updates cookie list from HTTP server response
  • Access: public

Parameters:

HTTP_Request   &$request     Request object already containing the response

[ Top ]

__sleep   [line 242]

void __sleep( )

Magic serialization function

Removes session cookies if $_serializeSessionCookies is false (default)


[ Top ]

__wakeup   [line 258]

void __wakeup( )

Magic unserialization function, purges expired cookies

[ Top ]


Documentation generated on Sat, 25 Oct 2008 13:30:16 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.