Prado\Web\THttpCookie::getPath PHP Method

getPath() public method

public getPath ( ) : string
return string the path on the server in which the cookie will be available on, default is '/'
    public function getPath()
    {
        return $this->_path;
    }

Usage Example

コード例 #1
0
ファイル: THttpCookieTest.php プロジェクト: pradosoft/prado
 public function testSetPath()
 {
     $cookie = new THttpCookie('name', 'value');
     $cookie->setPath('/admin');
     self::assertEquals('/admin', $cookie->getPath());
 }