Clarity: Can we retrieve the SessionID via Javascript in an On Demand environment?

Document ID : KB000048183
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

I am creating an HTML Portlet for use within a CA Clarity PPM On Demand system.
I am trying to get the user's SessionID vis Javascript by creating a function to getCookie() in an HTML Portlet.
The output generates 'undefined' message.

Is this supported in an On Demand Environment?

Solution:

Pulling the sessionID via Javascript in an On Demand environment is not supported.
We utilize the httpOnly cookie to prevent possible cross-site scripting vulnerabilities.
This locks the sessionID cookie to only be available to the server.