具有持久性的Cookie管理

PEAR's HTTP_Request2 - I've got a HTTP_Request2_CookieJar object that I wish to save for a later session.

The manual for HTTP_Request2 says it implements the serializable interface. The source the manual refers to does indeed show implementations of the serialize() and unserialize() contracts.

But that source is Feb 2011. The latest August 2011 source no longer implements the serializable interface.

Serializing the object with using PHP's serialize()/unserialize() appears to be a nightmare from some searching I've done on it.

The nice thing about HTTP_Request2's cookie jar was it automatically handled cookies during the session, but I need them to persist between sessions and don't really want to have to spend a night writing pages of code to do so.

Is there an easiest path to take here?

I'd like to note the question gives misleading info.

HTTP_Request2_CookieJar implemented Serializable interface from the very beginning and this was never removed, see this SVN annotation.

By default, session cookies are not serialized. You must call serializeSessionCookies(true) on the CookieJar object before serializing. See HTTP_Request2_CookieJar::serializeSessionCookies.

The code for serializing:353 and unserializing:376 is present in March 2012, so maybe the developer put it back in.