EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB483149: MSTRIO Close() Method Does Not Terminate the Intelligence Server Session


Daniel Zumbaugh

Principal Product Specialist • MicroStrategy


Using the MSTRIO-py wrapper, sessions remain open after using the close() method. This is a known issue with how the session cookies are being handled within the Close() method. See the Workaround section of this Kb article for a solution.

When using MSTRIO functionality to make REST API calls, a session needs to be created with the Intelligence Server. After completing your customizations, it is best practice to ensure that the session used is closed. In MSTRIO, the session can be closed by utilizing the

Close()
method, which is found in
Strategy.py
.
However, when the 
Close()
method is called, the user session is still live. So subsequent calls to the Intelligence Server can still be made with the session. This is a known issue with how the session cookies are being handled within the
Close()
method.

Workaround


In logout function of the authentication.py file, add the line

cookies=connection.cookies
 in the response post URL. As shown below:

ka02R000000kdSdQAI_0EM2R000000gogy.jpeg

  KB483149


Comment

0 comments

Details

Knowledge Article

Published:

April 10, 2019

Last Updated:

April 10, 2019