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.
![](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.
![](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.
![](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.
![](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.
![](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.
![](https://files.readme.io/8fbc160-small-requests-delete-a-cookie.png)
Updated 8 months ago