---
title: "The session configuration parameters"
slug: "the-session-configuration-parameters"
abstract: "Overview of the session configuration parameters with examples."
---
# The session configuration parameters

A session object stores the following session configuration parameters:

- The [connection endpoint parameters](https://doc.sitecore.com/xp/en/developers/104/sitecore-experience-platform/the-connection-endpoint-parameters.html "The connection endpoint parameters"):
    - Instance URL
- The [default Interaction parameters](https://doc.sitecore.com/xp/en/developers/104/sitecore-experience-platform/the-defaultinteraction-parameter.html "The defaultInteraction parameter"):
    - `IUTInteraction` interface instance
- Device Identifier:
    - Device unique ID

You can pass the parameters in any order. For example:

```csharp
var defaultInteraction = UTEntitiesBuilder.Interaction()
                                .ChannelId("27b4e611-a73d-4a95-b20a-811d295bdf65")
                                .Initiator(InteractionInitiator.Contact)
                                .Contact("jsdemo", "demo")
                                .Build();

var session = SitecoreUTSessionBuilder.SessionWithHost("https://mysite.com")
                                .DefaultInteraction(defaultInteraction)
                                .DeviceIdentifier(UIDevice.CurrentDevice.IdentifierForVendor.ToString())
                                .BuildSession();
```

You can also pass the parameters one by one. For example:

```csharp
var defaultInteractionBuilder = UTEntitiesBuilder.Interaction();

// ... other code...
defaultInteractionBuilder.ChannelId("27b4e611-a73d-4a95-b20a-811d295bdf65");

// ... other code...
defaultInteractionBuilder.Initiator(InteractionInitiator.Contact);

// ... other code...
defaultInteractionBuilder.Contact("jsdemo", "demo");

// ... other code...
var defaultInteraction = defaultInteractionBuilder.Build();

var session = SitecoreUTSessionBuilder.SessionWithHost("https://mysite.com")
                                      .DefaultInteraction(defaultInteraction)
                                      .DeviceIdentifier(UIDevice.CurrentDevice.IdentifierForVendor.ToString())
                                      .BuildSession();
```