# Journey Based on Session Cookie

## **Overview**

Configuring a journey based on cookies allows you to personalize user experiences by directing them to different pages depending on their authentication status or browsing history. For example, you might want to:

* Route **logged-in users** to the **Manage My Account** page.
* Redirect **guest users** to a sign-in or promotional page.

Limio supports all cookies starting with the prefixes `lmo_` and `limio-`, making it easy to segment users dynamically. This guide explains how to create a journey and apply cookie-based criteria to control user flow.

*Example: If a user has the `lmo_uid` cookie (indicating they are authenticated), they can be automatically routed to the **Manage My Account** page. Users without this cookie can be directed to a **sign-in page** or **subscription offer**.*

## **Creating a Journey**

1. Select **Journeys** from the left-hand navigation panel.
2. Click the **plus** **+** button and select **Add Journey Group**.
3. Enter a name for the group and click **Save**.
4. Click the **pencil** ✏️ icon next to **Starting Point** to define how users enter the journey:
   * Choose an existing tag or create a new one.
   * (Recommended) Set a **Fallback Tag** to ensure proper routing.
5. Select or deselect **Domains** to determine where the journey applies.

## **Adding Cookie Criteria**

1. Under **Conditions**, open the **Type** dropdown and select **Cookie Exists**.
2. In the **Cookie String** field, enter one or multiple cookie names, separated by commas (e.g `lmo_uid`).
3. Under **Actions**, ensure **Type** is set to **Destination**.
4. Click the **pencil** ✏️ icon next to **Split (%)**, which defaults to **100%**, and specify the endpoint.
   * Click **Add Condition** to include an additional condition for the journey.
   * Click the **plus +** button below an existing condition to add an **AND** criteria within that condition.
5. Finally, click **Save** to put the Journey live.

**Verification Steps**:

1. Open a browser and ensure the cookie is set (e.g `lmo_uid`).
   * Right-click> Inspect
   * Click the Application tab
   * Under the Storage heading > Cookies
2. Access the starting point URL.
3. Confirm that the browser redirects to the specified destination URL.

<figure><img src="/files/WYef7lVlJjFFWE7TNTY3" alt=""><figcaption></figcaption></figure>

📷 *Screenshot: View of the "Cookie Exists" condition in the Journeys tab.*


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.limio.com/product/journey/what-are-limio-journeys/create-a-journey-based-on-a-session-cookie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
