cookies.php
public function isValidPath($path)
    {
        return (strncmp($this->fixPath($path), $this->getPath(), strlen($this->getPath())) == 0);
    }
public function isValidPath($path)
    {
        return (strncmp($this->fixPath($path), $this->getPath(), strlen($this->getPath())) == 0);
    }
public function isValidPath ( $ path ) { return ( strncmp ( $ this -> fixPath ( $ path ) , $ this -> getPath ( ) , strlen ( $ this -> getPath ( ) ) ) == 0 ) ; }
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.
Tests a path to see if the cookie applies there . The test path must be longer or equal to the cookie path .