> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookies

If you want Gleap to use cookies for the session management, you can enable the feature by setting `useCookies` to true before calling `Gleap.initialize()`.

```javascript theme={null}
Gleap.setUseCookies(true);
```

The default value is *false*.

<Info>
  You MUST set useCookies to false OR true before initializing the Gleap SDK.
</Info>

### Why do we use cookies?

As many customers want to keep a session throughout all subdomains, we use cookies to enable session tracking through all subdomains. If you disable the cookie session management, you will need to identify your users on all subdomains separately.
