Snoopy::setcookies

Advertisement

Syntax Syntax

Snoopy::setcookies()

Source Source

File: wp-includes/class-snoopy.php

	function setcookies()
	{
		for($x=0; $x<count($this->headers); $x++)
		{
		if(preg_match('/^set-cookie:[\s]+([^=]+)=([^;]+)/i', $this->headers[$x],$match))
			$this->cookies[$match[1]] = urldecode($match[2]);
		}
	}

Advertisement

Advertisement

Leave a Reply