getPath() public method

public getPath ( ) : string
return string the path on the server in which the cookie will be available on, default is '/'
Esempio n. 1
0
 public function testSetPath()
 {
     $cookie = new THttpCookie('name', 'value');
     $cookie->setPath('/admin');
     self::assertEquals('/admin', $cookie->getPath());
 }