# CreateSession Method

## Overloads

| [CreateSession(String, String, String, Boolean, Boolean, Boolean, Boolean, String, String)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.IQDS.CreateSession.htm#PIX_Services_IQDS_CreateSession_System_String_System_String_System_String_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_String_System_String_) |  |  |
| --- | --- | --- |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.IQDS.CreateSession.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.IQDS.CreateSession.htm)

## CreateSession(String, String, String, Boolean, Boolean, Boolean, Boolean, String, String)

### Declaration

```

          QDSSession CreateSession(string i_QDSPassword, string i_FileName, string i_GroupName, bool i_ClearSelections, bool i_ClearLocks, bool i_ClearOneAndAlwaysOne, bool i_Reduce, string i_EncryptedSectionAccessUsername, string i_EncryptedSectionAccessPassword)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | i\_QDSPassword |  |
| System.String | i\_FileName |  |
| System.String | i\_GroupName |  |
| System.Boolean | i\_ClearSelections |  |
| System.Boolean | i\_ClearLocks |  |
| System.Boolean | i\_ClearOneAndAlwaysOne |  |
| System.Boolean | i\_Reduce |  |
| System.String | i\_EncryptedSectionAccessUsername |  |
| System.String | i\_EncryptedSectionAccessPassword |  |

### Returns

| Type | Description |
| --- | --- |
| [QDSSession](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Document.QDSSession.htm) |  |