Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPDefaultSessionList.CreateUniqueSession Method

Creates a new HTTP asession with a unique session ID and remote IP address.

Pascal
function CreateUniqueSession(
    const RemoteIP: String
): TIdHTTPSession; override;
Parameters 
Description 
RemoteIP 
IP address or host name for the remote connection. 

TIdHTTPSession - new HTTP session created for a client connection.

CreateUniqueSession is an overridden TIdHTTPSession function used to ensure a new HTTP session is created for a client connection having the remote IP address specified in RemoteIP. 

CreateUniqueSession generates a random value for the session identifier used in the HTTP session, and calls CreateSession when the RemoteIP and SessionID combination is guaranteed to be unique.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.