Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
maxim1500
Partner - Creator
Partner - Creator

Qlik Sense session ID using mashup APIs

Hi,

Is it possible to get the session ID stored in X-Qlik-Session from a client mashup? I need this for authentification purposes on a third party API. I see that the session id is passed in a cookie in the request header to QS, but it is not accessible from javascript (probably HttpOnly). I tried using the proxy API, but this only returns the userid and the directory, not the session id.

Is there any other way to get this info using an API, or some other technique I am not thinking about?

Thanks!

2 Replies
sebastian_serva
Partner - Contributor III
Partner - Contributor III

Any progress on this?
maxim1500
Partner - Creator
Partner - Creator
Author

Hello Sebastian,

Since our API was living on the same server, I was able to get the same cookie from the API side in C#. 

 
string sessionId = null;
context.Request.Cookies.TryGetValue("X-Qlik-Session", out sessionId);
 
Hope it helps!
 
Maxime