code/libraries/joomlatools/library/http/cookie/cookie.php
public function setPath($path)
    {
        if(empty($path)) {
            $this->_path = '/';
        } else {
            $this->_path = $path;
        }

        return $this;
    }
public function setPath($path)
    {
        if(empty($path)) {
            $this->_path = '/';
        } else {
            $this->_path = $path;
        }

        return $this;
    }
public function setPath ( $ path ) { if ( empty ( $ path ) ) { $ this -> _path = '/' ; } else { $ this -> _path = $ path ; } return $ this ; }
Set the cookie path

@param string $path The cookie path
@return KHttpCookie
Set the cookie path