public function matchPath($path)
    {
        return $this->path === $path || (0 === strpos($path, rtrim($this->path, '/').'/'));
    }
public function matchPath($path)
    {
        return $this->path === $path || (0 === strpos($path, rtrim($this->path, '/').'/'));
    }
public function matchPath ( $ path ) { return $ this -> path === $ path || ( 0 === strpos ( $ path , rtrim ( $ this -> path , '/' ) . '/' ) ) ; }
Checks whether this cookie is meant for this path.

@see http://tools.ietf.org/html/rfc6265#section-5.1.4

@param string $path

@return bool
Checks whether this cookie is meant for this path .