How You Can Keep Track of the Current Session
The DBSession attribute, defined for the ProcExec class and inherited by the GhostExec, FrameExec, and MethodExec classes, identifies the current database session for the application. This attribute contains the DBSessionObject object.
For more information about using this attribute, see
How You Can Switch Database Sessions (see
How You Can Switch Database Sessions).