> For the complete documentation index, see [llms.txt](https://docs.jentis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jentis.com/core-concepts/jentis-cookies/reduce-jentis-cookie-lifetime.md).

# Reduce JENTIS Cookie Lifetime

The `jts-rw` cookie stores the JENTIS first-party identifier. By default, it has a 13-month lifetime.

You may want a shorter lifetime when a persistent identifier is unnecessary for privacy reasons. This can apply when all configured vendors are denied, do not require consent, or run in Essential Mode.

### Lifetime rules

When configured, JENTIS reduces the `jts-rw` lifetime to 30 minutes if **all** vendors in the container have one of these states:

* Denied consent
* No consent required
* Essential mode

If at least one vendor has granted consent, JENTIS uses the default 13-month lifetime.

### Configure a reduced lifetime

Configure a code element in JENTIS Tag Manager to enable the reduced lifetime.

1. Open **Tag Manager → Codes** and create a code element.
2. Enter a descriptive name.
3. Select the JENTIS containers where the setting applies.
4. Add this function call to the code input:

   ```
   window.jentisApp.setUserCookieLifetimeWithoutConsent(1800); // Lifetime in seconds
   ```
5. Select the **Before JENTIS Bundle Load** trigger.
6. Save the code element.

The following is a sample configuration:

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2FQHX3CJNzYsP0bXMlWlxW%2Fimage.png?alt=media&amp;token=c7d778a7-5217-4584-a795-a8e08a53180d" alt=""><figcaption></figcaption></figure>

Test the configuration, then publish the associated JENTIS container.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jentis.com/core-concepts/jentis-cookies/reduce-jentis-cookie-lifetime.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
