---
updatedAt: 2025-06-22T14:18:47.000Z
agentTools:
  projectIndex: https://docs.rapidapi.com/v2.0/llms.txt
---

# Sessions

Requests support the ability to store cookies in an entity called a Session. By storing cookies, sessions are useful for maintaining and reusing a user state between requests. Additionally, you can use multiple sessions to capture requests between different user states. If a response returns a Set-Cookie header, those cookies will automatically be added to that session's cookies.

# Add Session

By default, a session called **Default Session** is created in your Main branch. To create an additional session, select the **Session settings** icon to the right of the Session drop-down.

<Image align="center" className="border" border={true} src="https://files.readme.io/5a7af87-small-studio-requests-add-session.png" />

You can add another session in the session management dialog by selecting the + Add Session icon.

<Image align="center" className="border" border={true} src="https://files.readme.io/568b7ff-small-studio-requests-add-session.png" />

After naming the new session, click the ✔️ Rename button to save the session name.

<Image align="center" className="border" border={true} src="https://files.readme.io/04e6a53-small-studio-requests-rename-session.png" />

# Add Cookie

A session can store multiple cookies. To add a new cookie, navigate to the session you want to add the cookie in and select the + Add Cookie button.

<Image align="center" className="border" border={true} src="https://files.readme.io/e821564-small-studio-requests-add-cookie.png" />

When configuring a cookie, you can set the **Key** (name), **Value** (content), **Domain**, **Path**, **Expires** or **MaxAge**,  and set the **Secure** attribute.

<Image align="center" className="border" border={true} src="https://files.readme.io/eb7aa19-small-studio-requests-cookie-example.png" />

# Delete a Cookie

You can delete a cookie by clicking the 🗑️ trash icon to the right of the cookie.

<Image align="center" className="border" border={true} src="https://files.readme.io/8fbc160-small-requests-delete-a-cookie.png" />