isHttpOnly() 공개 메소드

Returns the httponly flag of the cookie.
public isHttpOnly ( ) : boolean
리턴 boolean The cookie httponly flag
예제 #1
0
 public function testIsHttponly()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertFalse($cookie->isHttpOnly(), '->isHttpOnly() returns false if not defined');
     $cookie = new Cookie('foo', 'bar', 0, '/', 'foo.com', false, true);
     $this->assertTrue($cookie->isHttpOnly(), '->isHttpOnly() returns the cookie httponly flag');
 }