How an implementation of the WebSessionService actually associates WebSession objects with user sessions in a web browser is up to the implementation. A typical way to do this would be to set a cookie referencing the WebSession in the user's web browser.
Sessions are always associated with a certain application. This allows for different applications running in one OSP container to each have their own session object.
Application names should follow the usual OSP reverse-DNS naming schema. Specifying an empty application name is valid.
Direct Base Classes: Poco::OSP::Service
virtual WebSession::Ptr find(
const std::string & appName,
const Request & request
) = 0;
Return a WebSession object for the application specified by appName and the given HTTP request if one exists, or a null pointer otherwise.
Return a WebSession object for the application specified by appName and the given HTTP request. If no session is associated with the given request, a new session is created with the given expiration time.
const std::type_info & otherType
See also: Poco::OSP::Service::isA()
virtual void remove(
) = 0;
Removes a session from the manager, if it exists. Does nothing if the session is not known to the session manager.
const std::type_info & type() const;
See also: Poco::OSP::Service::type()