#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Common](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common 'Abblix\.Oidc\.Server\.Common')

## CookieOptions Class

Represents options for an HTTP cookie, including properties for HTTP\-only, essential, secure,
path, domain, SameSite attribute, expiration, and maximum age\.

```csharp
public record CookieOptions : System.IEquatable<Abblix.Oidc.Server.Common.CookieOptions>
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → CookieOptions

Implements [System\.IEquatable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')[CookieOptions](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.CookieOptions 'Abblix\.Oidc\.Server\.Common\.CookieOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')
### Properties

## CookieOptions\.Domain Property {#Abblix.Oidc.Server.Common.CookieOptions.Domain}

The domain for which the cookie is valid\.

```csharp
public string? Domain { get; set; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

## CookieOptions\.Expires Property {#Abblix.Oidc.Server.Common.CookieOptions.Expires}

The expiration date and time of the cookie\.

```csharp
public System.Nullable<System.DateTimeOffset> Expires { get; set; }
```

#### Property Value
[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.DateTimeOffset](https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset 'System\.DateTimeOffset')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')

## CookieOptions\.HttpOnly Property {#Abblix.Oidc.Server.Common.CookieOptions.HttpOnly}

Indicates if the cookie is accessible only through HTTP\.

```csharp
public bool HttpOnly { get; set; }
```

#### Property Value
[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')

## CookieOptions\.IsEssential Property {#Abblix.Oidc.Server.Common.CookieOptions.IsEssential}

Indicates if the cookie is essential for the application's functionality\.

```csharp
public bool IsEssential { get; set; }
```

#### Property Value
[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')

## CookieOptions\.MaxAge Property {#Abblix.Oidc.Server.Common.CookieOptions.MaxAge}

The maximum age of the cookie as a time span\.

```csharp
public System.Nullable<System.TimeSpan> MaxAge { get; set; }
```

#### Property Value
[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.TimeSpan](https://learn.microsoft.com/en-us/dotnet/api/system.timespan 'System\.TimeSpan')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')

## CookieOptions\.Path Property {#Abblix.Oidc.Server.Common.CookieOptions.Path}

The path for which the cookie is valid\.

```csharp
public string? Path { get; set; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

## CookieOptions\.SameSite Property {#Abblix.Oidc.Server.Common.CookieOptions.SameSite}

The SameSite attribute of the cookie\.

```csharp
public string? SameSite { get; set; }
```

#### Property Value
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')

## CookieOptions\.Secure Property {#Abblix.Oidc.Server.Common.CookieOptions.Secure}

Indicates if the cookie should only be sent over secure channels \(HTTPS\)\.

```csharp
public bool Secure { get; set; }
```

#### Property Value
[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')
