code/libraries/joomlatools/library/http/cookie/cookie.php
public function toString()
    {
        $str = urlencode($this->name) . '=';

        if ((string)$this->value !== '' )
        {
            $str .= urlencode($this->value);

            if ($this->_expire !== 0) {
                $str .= '; expires=' . gmdate(DateTime::COOKIE, $this->_expire);
            }
        }
        else $str .= 'deleted; expires=' . gmdate(DateTime::COOKIE, time() - 31536001);

        if ($this->_path) {
            $str .= '; path=' . $this->_path;
        }

        if ($this->domain !== null) {
            $str .= '; domain=' . $this->domain;
        }

        if ($this->isSecure() === true) {
            $str .= '; secure';
        }

        if ($this->isHttpOnly() === true) {
            $str .= '; httponly';
        }

        return $str;
    }
public function toString()
    {
        $str = urlencode($this->name) . '=';

        if ((string)$this->value !== '' )
        {
            $str .= urlencode($this->value);

            if ($this->_expire !== 0) {
                $str .= '; expires=' . gmdate(DateTime::COOKIE, $this->_expire);
            }
        }
        else $str .= 'deleted; expires=' . gmdate(DateTime::COOKIE, time() - 31536001);

        if ($this->_path) {
            $str .= '; path=' . $this->_path;
        }

        if ($this->domain !== null) {
            $str .= '; domain=' . $this->domain;
        }

        if ($this->isSecure() === true) {
            $str .= '; secure';
        }

        if ($this->isHttpOnly() === true) {
            $str .= '; httponly';
        }

        return $str;
    }
public function toString ( ) { $ str = urlencode ( $ this -> name ) . '=' ; if ( ( string ) $ this -> value !== '' ) { $ str .= urlencode ( $ this -> value ) ; if ( $ this -> _expire !== 0 ) { $ str .= '; expires=' . gmdate ( DateTime :: COOKIE , $ this -> _expire ) ; } } else $ str .= 'deleted; expires=' . gmdate ( DateTime :: COOKIE , time ( ) - 31536001 ) ; if ( $ this -> _path ) { $ str .= '; path=' . $ this -> _path ; } if ( $ this -> domain !== null ) { $ str .= '; domain=' . $ this -> domain ; } if ( $ this -> isSecure ( ) === true ) { $ str .= '; secure' ; } if ( $ this -> isHttpOnly ( ) === true ) { $ str .= '; httponly' ; } return $ str ; }
Return a string representation of the cookie

@return string
Return a string representation of the cookie