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

KB9897: Viewing Web Application Cookies in Microstrategy Web Universal


Community Admin

• Strategy


Viewing Web Application Cookies in Microstrategy Web Universal

Viewing Web Application Cookies
Typically, an HTTP request is made up of the page to be retrieved along with certain headers. Most of the web applications make use of cookies in order to identify that browser session with the specified application. In such scenarios, the browser sends the HTTP request along with the cookies that were already sent.
In most of the cases, a user wants to know which cookies are being set as part of the application work flow and how they have been modified over the course of user actions. This information aids while debugging various customer cases.
There are two methods of identifying these cookies:

  • javascript:document.cookie (from the web browser)
  • Using the following JSP code (placed at the end of mstrWeb.jsp)
    <%
    Cookie[] cookies = request.getCookies();
    out.println("Total cookies are : " + cookies.length + "<br>");
    for (int i=0; i< cookies.length; i++) {
    Cookie c = cookies; out.println(" Cookie : " + i + " " + c.getName() + " ===> " + c.getValue() + "<br>"); } %>

The first option (javascript option) will only work from within the browser. Thus, it's usage is very limited as one must keep issuing that address (in the browser window) after every HTTP request is sent so as to view the cookies and how they have been changed over the course of the application. A sample screen shot is shown below:

ka04W000000OgEiQAK_0EM44000000293g.jpeg

The second option is more robust in that the modification must be done only once inside the "mstrWeb.jsp" page (which is located in the jsp folder of the Strategy Web Application). From then on, every HTTP response (the output HTML) displays a list of the cookies that have been sent as part of the HTTP request, as shown below:

ka04W000000OgEiQAK_0EM44000000293h.jpeg

 


Comment

0 comments

Details

Knowledge Article

Published:

June 16, 2017

Last Updated:

June 16, 2017