Internet Direct (Indy) Version 9.0.1 Beta
|
function CreateSession(AThread: TIdPeerThread; HTTPResponse: TIdHTTPResponseInfo; HTTPRequest: TIdHTTPRequestInfo): TIdHTTPSession;
CreateSession initializes a new HTTP session with a unique SessionID and the IP address specified in the HTTPRequest parameter. SessionID is added as the cookie 'IDHTTPSESSIONID' to the HTTPResponse parameter. The new session is also added to the session list for the server.
If SessionState is False, CreateSession will perform no action and return the value Nil.