protected function setCookie($value, $lifetime, $path = null, $domain = null, $secure = null, $httpOnly = null)
    {
        setcookie(
            $this->options['name'],
            json_encode($value),
            $lifetime,
            $path ?: $this->options['path'],
            $domain ?: $this->options['domain'],
            $secure ?: $this->options['secure'],
            $httpOnly ?: $this->options['http_only']
        );
    }
protected function setCookie($value, $lifetime, $path = null, $domain = null, $secure = null, $httpOnly = null)
    {
        setcookie(
            $this->options['name'],
            json_encode($value),
            $lifetime,
            $path ?: $this->options['path'],
            $domain ?: $this->options['domain'],
            $secure ?: $this->options['secure'],
            $httpOnly ?: $this->options['http_only']
        );
    }
protected function setCookie ( $ value , $ lifetime , $ path = null , $ domain = null , $ secure = null , $ httpOnly = null ) { setcookie ( $ this -> options [ 'name' ] , json_encode ( $ value ) , $ lifetime , $ path ? : $ this -> options [ 'path' ] , $ domain ? : $ this -> options [ 'domain' ] , $ secure ? : $ this -> options [ 'secure' ] , $ httpOnly ? : $ this -> options [ 'http_only' ] ) ; }
Sets a PHP cookie.

@param  mixed  $value
@param  int  $lifetime
@param  string  $path
@param  string  $domain
@param  bool  $secure
@param  bool  $httpOnly
@return void
Sets a PHP cookie .