Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
daniellw
Partner - Contributor II
Partner - Contributor II

.NET-API: Accessing session with specific identity

Hello,

to identify different sessions of the same app, qlik sense supports the "identity" parameter, e.g. "https://localhost4848/app/app_id/sheet/sheet_id/state/analysis/identity/1"

as mentioned here: https://community.qlik.com/t5/Qlik-Design-Blog/Qlik-Sense-URL-quot-hacks-quot/ba-p/1475676

Unfortunatly i haven't found any .net api method to determine a session with specific identity.

Is it possible to access such a session using the qlik sense .net api? If yes, a short example would be greatly appreciated. 🙂

Thank you and best regards

Daniel

Labels (2)
1 Solution

Accepted Solutions
Øystein_Kolsrud
Employee
Employee

Hi! There's no way to list the existing sessions used, but if you want to connect to a known session, then you should define the token as part of the Session instance when connection. That token goes into the identity part, so if you want to connect to an app using the identity "1", then you could do like this:

using (var app = location.App(appId, Session.WithApp(appId, "1")))
{
    DoStuff();
}

 

View solution in original post

1 Reply
Øystein_Kolsrud
Employee
Employee

Hi! There's no way to list the existing sessions used, but if you want to connect to a known session, then you should define the token as part of the Session instance when connection. That token goes into the identity part, so if you want to connect to an app using the identity "1", then you could do like this:

using (var app = location.App(appId, Session.WithApp(appId, "1")))
{
    DoStuff();
}