# SessionAppAsync Method

## Overloads

| [SessionAppAsync(ILocation, ISession)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.LocationExtensions.SessionAppAsync.htm#Qlik_Engine_LocationExtensions_SessionAppAsync_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.SessionAppAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.LocationExtensions.SessionAppAsync.htm)

## SessionAppAsync(ILocation, ISession)

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

### Declaration

```

          public static Task<ICreateSessionAppResult> SessionAppAsync(this ILocation location, ISession session = null)
    
  
```

### Parameters

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

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[ICreateSessionAppResult](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.ICreateSessionAppResult.htm)&gt; | A task with the result of the session app creation call as result. |