code: public function isValidPath($path)
      {
          return (strncmp($this->fixPath($path), $this->getPath(), strlen($this->getPath())) == 0);
      }
docs: Tests a path to see if the cookie applies there.
  The test path must be longer or equal to the cookie path.
  
  @param string $path Path to test against.
  
  @return bool True if cookie valid here.