FoxDataObjects

Object-Relational Mapping Tool for Visual FoxPro®

 ConnectedSessionsOnly   Property

 

 

Determines if Server.NewSession method can return a disconnected session object.

 Server.ConnectedSessionsOnly [=lValue]

 

Property Values

 

lValue

 
  The settings for the ConnectedSessionsOnly property are:
Setting Description
(True) .T. NewSession method will only return a connected session object.
(False) .F. NewSession method will skip connection process and will return a disconnected session object

Remarks

  When this property is set to .T. , the Server.NewSession method will only return a session object if a connection is successfully established with the datasource. If session object can not connect, the Server.NewSession method discards the session object and returns a .NULL. value.

When this property is set to .F., the Server.NewSession method will skip all connection steps and will return a disconnected session object. In such case, the connection to the data source must be manually established by calling the  Session.Connect method further in your code.

See Also

Server.NewSession method | Session.Connect method

Applies to: Server object

Send feedback on this topic to RunAhead Technologies

For Technical support and product issues please contact us at support@foxdataobjects.com or visit http://www.foxdataobjects.com

Copyright (c) 2000-2005 RunAhead Technologies