# Sandbox.CookieContainer.SetString

```csharp
void SetString(string key, string value)
```

Set a cookie to be stored between sessions. The cookie will expire one month
from when it was set.

### Parameters

- `key` (`string`)
- `value` (`string`)

Declared in [Sandbox.CookieContainer](/api/Sandbox.CookieContainer).
Assembly: `Sandbox.Engine`.
