Requests_Cookie_Jar::offsetSet() WordPress Method
The Requests_Cookie_Jar::offsetSet() method is used to set a cookie value in a cookie jar. The first argument is the name of the cookie, the second argument is the value of the cookie, and the third argument is an array of options.
Requests_Cookie_Jar::offsetSet( string $key, string $value ) #
Set the given item
Contents
Parameters
- $key
(string)(Required)Item name
- $value
(string)(Required)Item value
Source
File: wp-includes/Requests/Cookie/Jar.php
public function offsetSet($key, $value) { if ($key === null) { throw new Requests_Exception('Object is a dictionary, not a list', 'invalidset'); } $this->cookies[$key] = $value; }
Expand full source codeCollapse full source codeView on TracView on GitHub