getPath() public method

public getPath ( ) : string
return string the path on the server in which the cookie will be available on, default is '/'
コード例 #1
0
ファイル: THttpCookieTest.php プロジェクト: pradosoft/prado
 public function testSetPath()
 {
     $cookie = new THttpCookie('name', 'value');
     $cookie->setPath('/admin');
     self::assertEquals('/admin', $cookie->getPath());
 }