RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSessionList.OpenSession Method

Makes an existing session active, or creates a new session component and makes it active.

Pascal
function OpenSession(const SessionName: string): TSession;
C++
__fastcall TSession OpenSession(const AnsiString SessionName);

Call OpenSession to make an existing session active, or to create a new session and make it active. SessionName specifies the name of the session to open. 

OpenSession calls FindSession to see if the session specified in the SessionName parameter already exists. If it finds a match, it starts that session if necessary, and makes the session active. If OpenSession does not find an existing session, it creates a new session using the name specified in the SessionName parameter, starts the session, and makes it active. 

In either case, OpenSession returns a session object. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!