# CreateSessionAppAsync Method

## Overloads

| [CreateSessionAppAsync()](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.CreateSessionAppAsync.htm#Qlik_Engine_IHub_CreateSessionAppAsync) |  | Creates an empty session app.<br><br>The following applies:<br><br>\* The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.<br><br>\* A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections. |
| --- | --- | --- |
| [CreateSessionAppAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.CreateSessionAppAsync.htm#Qlik_Engine_IHub_CreateSessionAppAsync_Qlik_Engine_AsyncHandle_) |  | Creates an empty session app.<br><br>The following applies:<br><br>\* The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.<br><br>\* A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections. |
| [CreateSessionAppAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.CreateSessionAppAsync.htm#Qlik_Engine_IHub_CreateSessionAppAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) |  | Creates an empty session app.<br><br>The following applies:<br><br>\* The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.<br><br>\* A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections. |

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

## CreateSessionAppAsync()

Creates an empty session app.

The following applies:

* The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.
* A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections.

### Declaration

```

          Task<CreateSessionAppResult> CreateSessionAppAsync()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[CreateSessionAppResult](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.CreateSessionAppResult.htm)&gt; |  |

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

## CreateSessionAppAsync(AsyncHandle)

Creates an empty session app.

The following applies:

* The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.
* A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections.

### Declaration

```

          Task<CreateSessionAppResult> CreateSessionAppAsync(AsyncHandle asyncHandle)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[CreateSessionAppResult](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.CreateSessionAppResult.htm)&gt; |  |

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

## CreateSessionAppAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;)

Creates an empty session app.

The following applies:

* The name of a session app cannot be chosen. The engine automatically assigns a unique identifier to the session app.
* A session app is not persisted and cannot be saved. Everything created during a session app is non-persisted; for example: objects, data connections.

### Declaration

```
Task<T> CreateSessionAppAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |