public function setCookie($value, $lifetime, $path = null, $domain = null, $secure = null, $httpOnly = null)
	{
		// Default parameters
		if ( ! isset($path))     $path     = $this->defaults['path'];
		if ( ! isset($domain))   $domain   = $this->defaults['domain'];
		if ( ! isset($secure))   $secure   = $this->defaults['secure'];
		if ( ! isset($httpOnly)) $httpOnly = $this->defaults['http_only'];

		setcookie($this->getKey(), json_encode($value), $lifetime, $path, $domain, $secure, $httpOnly);
	}
public function setCookie($value, $lifetime, $path = null, $domain = null, $secure = null, $httpOnly = null)
	{
		// Default parameters
		if ( ! isset($path))     $path     = $this->defaults['path'];
		if ( ! isset($domain))   $domain   = $this->defaults['domain'];
		if ( ! isset($secure))   $secure   = $this->defaults['secure'];
		if ( ! isset($httpOnly)) $httpOnly = $this->defaults['http_only'];

		setcookie($this->getKey(), json_encode($value), $lifetime, $path, $domain, $secure, $httpOnly);
	}
public function setCookie ( $ value , $ lifetime , $ path = null , $ domain = null , $ secure = null , $ httpOnly = null ) { // Default parameters if ( ! isset ( $ path ) ) $ path = $ this -> defaults [ 'path' ] ; if ( ! isset ( $ domain ) ) $ domain = $ this -> defaults [ 'domain' ] ; if ( ! isset ( $ secure ) ) $ secure = $ this -> defaults [ 'secure' ] ; if ( ! isset ( $ httpOnly ) ) $ httpOnly = $ this -> defaults [ 'http_only' ] ; setcookie ( $ this -> getKey ( ) , json_encode ( $ value ) , $ lifetime , $ path , $ domain , $ secure , $ httpOnly ) ; }
Actually sets the cookie.

@param  mixed   $value
@param  int     $lifetime
@param  string  $path
@param  string  $domain
@param  bool    $secure
@param  bool    $httpOnly
@return void
Actually sets the cookie .