![]() |
Home · Modules · Classes · Namespaces · Functions |
The QxtHttpSessionManager class provides a session manager for HTTP-based protocols More...
#include <QxtHttpSessionManager>
Inherits QxtAbstractWebSessionManager.
The QxtHttpSessionManager class provides a session manager for HTTP-based protocols
QxtHttpSessionManager is a QxtWeb session manager that adds session management support to the normally stateless HTTP model.
In addition to session management, QxtHttpSessionManager also supports a static service, which can serve content that does not require session management, such as static web pages. The static service is also used to respond to HTTP/0.9 clients that do not support cookies and HTTP/1.0 and HTTP/1.1 clients that are rejecting cookies. If no static service is provided, these clients will only see an "Internal Configuration Error", so it is recommended to supply a static service, even one that only returns a more useful error message.
QxtHttpSessionManager attempts to be thread-safe in accepting connections and posting events. It is reentrant for all other functionality.
See also QxtAbstractWebService.
Constructs a new QxtHttpSessionManager with the specified parent.
Returns true if sessions are automatically created for every connection that does not already have a session cookie associated with it; otherwise returns false.
See also setAutoCreateSession.
Returns the connector used to manage connections to web browsers.
See also setConnector.
Handles incoming HTTP requests and dispatches them to the appropriate service.
The requestID is an opaque value generated by the connector.
Subclasses may override this function to perform preprocessing on each request, but they must call the base class implementation in order to generate and dispatch the appropriate events.
Returns the interface on which the session manager will listen for incoming connections.
See also setListenInterface() and setInterface.
Creates a new session and sends the session key to the web browser.
Subclasses may override this function to perform custom session initialization, but they must call the base class implementation in order to update the internal session database and fetch a new session ID.
Returns the port on which the session manager will listen for incoming connections.
See also setPort() and setInterface.
Returns the name of the HTTP cookie used to track sessions in the web browser.
See also setSessionCookieName.
Sets enabled whether sessions are automatically created for every connection that does not already have a session cookie associated with it.
Sessions are only created for clients that support HTTP cookies. HTTP/0.9 clients will never generate a session.
See also autoCreateSession.
Sets the connector used to manage connections to web browsers.
See also connector.
Sets the connector used to manage connections to web browsers.
This overload is provided for convenience and can construct the predefined connectors provided with Qxt.
See also connector.
Sets the interface iface on which the session manager will listen for incoming connections.
The default value is QHostAddress::Any, which will cause the session manager to listen on all network interfaces.
See also listenInterface() and QxtAbstractHttpConnector::listen.
Sets the port on which the session manager will listen for incoming connections.
The default value is to listen on port 80. This is an acceptable value when using QxtHttpServerConnector, but it is not likely to be desirable for other connectors.
See also port.
Sets the name of the HTTP cookie used to track sessions in the web browser.
The default value is "sessionID".
See also sessionCookieName.
Sets the service that is used to respond to requests from connections that are not associated with a session.
If no static content service is set, connections that are not associated with a session will receive an "Internal Configuration Error".
See also staticContentService.
Returns the QxtAbstractWebService that is used to respond to requests from connections that are not associated with a session.
See also setStaticContentService.
Copyright © 2007-2010 Qxt Foundation |
Qxt 0.6.1 |