File Information
Library: RemotingNG/JSONRPC
Package: JSONRPC
Header: Poco/RemotingNG/JSONRPC/CookieStore.h
Description
A CookieStore object stores cookies set by a JSONRPC server.
Normally, each Transport (and thus Proxy) instance has its own cookie store instance. However, CookieStore objects can also be shared among multiple Transport instances connected to the same server.
A typical use case for this is sharing session cookies among all Transport/Proxy instances connected to the same server.
Note: The application must take care that CookieStore objects are only shared among Transport instances connected to the same server.
Inheritance
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Member Summary
Member Functions: addCookies, updateCookies
Inherited Functions: duplicate, referenceCount, release
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < CookieStore >;
Constructors
CookieStore
CookieStore();
Creates an empty CookieStore.
Destructor
~CookieStore
~CookieStore();
Destroys the CookieStore.
Member Functions
addCookies
void addCookies(
Poco::Net::HTTPRequest & request
);
Adds the stored cookies to the given request object.
updateCookies
void updateCookies(
const Poco::Net::HTTPResponse & response
);
Updates the stored cookies with the cookies from the given response object.