Prado\Web\THttpCookie::getPath PHP 메소드

getPath() 공개 메소드

public getPath ( ) : string
리턴 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
 public function testSetPath()
 {
     $cookie = new THttpCookie('name', 'value');
     $cookie->setPath('/admin');
     self::assertEquals('/admin', $cookie->getPath());
 }