Icon OpenSession Method

function OpenSession(const SessionName: String): TEDBSession

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

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

In either case, OpenSession returns the TEDBSession component.

Information This method only applies when the EngineType property is set to etClient.
Image