Flynet Viewer .NET Programmer's Reference

newSession Property

newSession Property

Previous topic Next topic  

newSession Property

Previous topic Next topic  

 

Return TRUE if the current connection is new and was not previously started.

 

HostConnection.newSession

 

Arguments

 

HostConnection

 Required. HostConnection object.

 

Remarks

 

READONLY.

 

Returns a boolean value.

 

The newSession property is true if the connection was not previously started. This property is used in a pooled session environment.

 

If the newSession property is true then a signon sequence needs to be run, otherwise the session is already logged on and ready to use.

 

A session is released back into the pool by using the disconnect method with the "release" option.

 

The following c# example demonstrates the newSession property being used to determine whether to perform the signon sequence:

 

 HostConnection oConn = new HostConnection();

 oConn.hostName = "Insure";

 oConn.connect("standard");

 if (oConn.newSession)

 {

         LogonSession(oConn);

 }

 

Requirements

 

Flynet Viewer

 

See Also

 

Connect | sessionOptions | sessionHost | sessionPort | sessionType

 

Applies To: HostConnection object

 


© 2016 Inventu Corporation, Flynet LTD