Qlik Community

Ask a Question

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Join us for a live Q&A! September 21, 10 AM ET - Onboarding Fast in Qlik Sense SaaS! REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
maxim1500
Partner
Partner

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
Partner

Any progress on this?
maxim1500
Partner
Partner
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