RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBTables.Sessions Variable

Provides access to TSessionList methods and properties.

Pascal
Sessions: TSessionList;
C++
TSessionList Sessions;

Sessions is a way to access TSessionList methods and properties for manipulating sessions. The DB unit automatically creates and destroys Sessions for you; you don't need to do anything but use it. 

The Session variable, on the other hand, is responsible for maintaining all of the database components used by your application. It is created automatically as part of your application's initialization and destroyed as part of your application's termination. The Session variable must remain active at all times; it can not be destroyed and recreated. 

 

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