Title: Requests_Cookie_Jar
Published: August 16, 2016
Last modified: November 2, 2022

---

# class Requests_Cookie_Jar {}

## In this article

 * [Methods](https://developer.wordpress.org/reference/classes/requests_cookie_jar/?output_format=md#methods)
 * [Source](https://developer.wordpress.org/reference/classes/requests_cookie_jar/?output_format=md#source)

[ Back to top](https://developer.wordpress.org/reference/classes/requests_cookie_jar/?output_format=md#wp--skip-link--target)

Cookie holder object

## 󠀁[Methods](https://developer.wordpress.org/reference/classes/requests_cookie_jar/?output_format=md#methods)󠁿

| Name | Description | 
| [Requests_Cookie_Jar::__construct](https://developer.wordpress.org/reference/classes/requests_cookie_jar/__construct/) | Create a new jar | 
| [Requests_Cookie_Jar::before_redirect_check](https://developer.wordpress.org/reference/classes/requests_cookie_jar/before_redirect_check/) | Parse all cookies from a response and attach them to the response | 
| [Requests_Cookie_Jar::before_request](https://developer.wordpress.org/reference/classes/requests_cookie_jar/before_request/) | Add Cookie header to a request if we have any | 
| [Requests_Cookie_Jar::getIterator](https://developer.wordpress.org/reference/classes/requests_cookie_jar/getiterator/) | Get an iterator for the data | 
| [Requests_Cookie_Jar::normalize_cookie](https://developer.wordpress.org/reference/classes/requests_cookie_jar/normalize_cookie/) | Normalise cookie data into a [Requests_Cookie](https://developer.wordpress.org/reference/classes/requests_cookie/) | 
| [Requests_Cookie_Jar::normalizeCookie](https://developer.wordpress.org/reference/classes/requests_cookie_jar/normalizecookie/) | Normalise cookie data into a [Requests_Cookie](https://developer.wordpress.org/reference/classes/requests_cookie/) — deprecated | 
| [Requests_Cookie_Jar::offsetExists](https://developer.wordpress.org/reference/classes/requests_cookie_jar/offsetexists/) | Check if the given item exists | 
| [Requests_Cookie_Jar::offsetGet](https://developer.wordpress.org/reference/classes/requests_cookie_jar/offsetget/) | Get the value for the item | 
| [Requests_Cookie_Jar::offsetSet](https://developer.wordpress.org/reference/classes/requests_cookie_jar/offsetset/) | Set the given item | 
| [Requests_Cookie_Jar::offsetUnset](https://developer.wordpress.org/reference/classes/requests_cookie_jar/offsetunset/) | Unset the given header | 
| [Requests_Cookie_Jar::register](https://developer.wordpress.org/reference/classes/requests_cookie_jar/register/) | Register the cookie handler with the request’s hooking system |

## 󠀁[Source](https://developer.wordpress.org/reference/classes/requests_cookie_jar/?output_format=md#source)󠁿

[View all references](https://developer.wordpress.org/reference/files/wp-includes/requests/cookie/jar.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/Requests/Cookie/Jar.php#L15)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Frequests_cookie_jar%2F)
before being able to contribute a note or feedback.