# SessionApp Method

## Overloads

| [SessionApp(ILocation, ISession)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.LocationExtensions.SessionApp.htm#Qlik_Engine_LocationExtensions_SessionApp_Qlik_Engine_ILocation_Qlik_Engine_ISession_) |  | Create and connect to a new session app.<br>This method opens a websocket connection. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.LocationExtensions.SessionApp.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.LocationExtensions.SessionApp.htm)

## SessionApp(ILocation, ISession)

Create and connect to a new session app. This method opens a websocket connection.

### Declaration

```

          public static ICreateSessionAppResult SessionApp(this ILocation location, ISession session = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [ILocation](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ILocation.htm) | location | Location object of the Qlik Sense instance |
| [ISession](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ISession.htm) | session | Session information to use. Default value is `Session.Random` |

### Returns

| Type | Description |
| --- | --- |
| [ICreateSessionAppResult](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ICreateSessionAppResult.htm) | The result of the session app creation call. |