You are viewing limited content. For full access, please sign in.

Question

Question

Should I "close" a session without "logout"?

SDK
asked on April 6, 2015

After I instantiate a new session, should I "logout" the session before I "Close" the session once I are done? (I noticed that most of examples would "login" to a repository and then just "close" the session without "logout"?        

//at the beginning       

RepositoryRegistration myRepoReg = new RepositoryRegistration("Empower15", "LaserInvestigators"); 
mySess = new Session();
mySess.LogIn(myRepoReg);

//at the end

mySess.Close();
 

Should I do "mySess.LogOut();" before "mySess.Close();"? What is the best way to improve performance?

Thank you for helping me to clarify this.

 

 

0 0

Answer

APPROVED ANSWER
replied on April 6, 2015

You don't have to. See the SDK documentation for Session.Close: "Logs out and disconnects from Laserfiche and disposes of all allocated resources.

0 0
replied on April 6, 2015

Thank you! You have answered my question. smiley

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.