# Session Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

Contains Information to attach to a specific Qlik engine session When connecting to a Qlik Sense app you can work with sessions. Sessions specify who should see changes in an app, and are based on combining userId and session key.

## Inheritance

* System.Object
  * [Session](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Session.htm)
    * Session

## Syntax

```
public class Session : Session, ISession, ISession
```

## Remarks

Only one app can be open in a session at a time

## Properties

| Name | Description |
| --- | --- |
| [AppIdentifier](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Session.AppIdentifier.htm#Qlik_Engine_Session_AppIdentifier) | App identifier |
| [Default](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Session.Default.htm#Qlik_Engine_Session_Default) | Default session usable for connecting to the hub |
| [Random](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Session.Random.htm#Qlik_Engine_Session_Random) | Initializes a globally unique session. |

## Methods

| Name | Description |
| --- | --- |
| [WithApp(IAppIdentifier, SessionType)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Session.WithApp.htm#Qlik_Engine_Session_WithApp_Qlik_Engine_IAppIdentifier_Qlik_Engine_SessionType_) | Initializes an app specific session<br><br><table><thead><tr><th>SessionType</th><th>Behavior</th></tr></thead><tr><td>SessionType.Default</td><td>Connects to a app session shared with the Qlik Sense web client</td></tr><tr><td>SessionType.Random</td><td>Connects to a globally unique app session</td></tr></table> |
| [WithApp(IAppIdentifier, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Session.WithApp.htm#Qlik_Engine_Session_WithApp_Qlik_Engine_IAppIdentifier_System_String_) | Initializes a app specific session with a custom session token |
| [WithApp(String, SessionType)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Session.WithApp.htm#Qlik_Engine_Session_WithApp_System_String_Qlik_Engine_SessionType_) | Initializes an app specific session<br><br><table><thead><tr><th>SessionType</th><th>Behavior</th></tr></thead><tr><td>SessionType.Default</td><td>Connects to a app session shared with the Qlik Sense web client</td></tr><tr><td>SessionType.Random</td><td>Connects to a globally unique app session</td></tr></table> |
| [WithApp(String, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Session.WithApp.htm#Qlik_Engine_Session_WithApp_System_String_System_String_) | Initializes a app specific session with a custom session token |