src/Net/HTTP/Cookie.php
public function set( $key, $value, $expires = 0, $path = NULL, $domain = NULL, $secure = NULL, $httpOnly = NULL )
	{
		$key		= str_replace( ".", "_", $key );
		$expires	= $expires ? time() + $expires : $expires;
		$path		= $path !== NULL ? $path : $this->path;
		$domain		= $domain !== NULL ? $domain : $this->domain;
		$secure		= $secure !== NULL ? $secure : $this->secure;
		$httpOnly	= $httpOnly !== NULL ? $httpOnly : $this->httpOnly;
		$this->data[$key]	=& $value;
		return setcookie( $key, $value, $expires, $path, $domain, $secure, $httpOnly );
	}
public function set( $key, $value, $expires = 0, $path = NULL, $domain = NULL, $secure = NULL, $httpOnly = NULL )
	{
		$key		= str_replace( ".", "_", $key );
		$expires	= $expires ? time() + $expires : $expires;
		$path		= $path !== NULL ? $path : $this->path;
		$domain		= $domain !== NULL ? $domain : $this->domain;
		$secure		= $secure !== NULL ? $secure : $this->secure;
		$httpOnly	= $httpOnly !== NULL ? $httpOnly : $this->httpOnly;
		$this->data[$key]	=& $value;
		return setcookie( $key, $value, $expires, $path, $domain, $secure, $httpOnly );
	}
public function set ( $ key , $ value , $ expires = 0 , $ path = NULL , $ domain = NULL , $ secure = NULL , $ httpOnly = NULL ) { $ key = str_replace ( "." , "_" , $ key ) ; $ expires = $ expires ? time ( ) + $ expires : $ expires ; $ path = $ path !== NULL ? $ path : $ this -> path ; $ domain = $ domain !== NULL ? $ domain : $ this -> domain ; $ secure = $ secure !== NULL ? $ secure : $ this -> secure ; $ httpOnly = $ httpOnly !== NULL ? $ httpOnly : $ this -> httpOnly ; $ this -> data [ $ key ] = & $ value ; return setcookie ( $ key , $ value , $ expires , $ path , $ domain , $ secure , $ httpOnly ) ; }
Writes a setting to Cookie.
@access		public
@param		string		$key			Key name of setting
@param		string		$value			Value of setting
@param		string		$path			Default path of cookie
@param		string		$domain			Domain of cookie
@param		boolean		$secure			Flag: only with secured HTTPS connection
@param		boolean		$httponly		Flag: allow access via HTTP protocol only
@return		boolean
Writes a setting to Cookie .