Symfony\Component\HttpFoundation\Cookie::isRaw PHP Method

isRaw() public method

Checks if the cookie value should be sent with no url encoding.
public isRaw ( ) : boolean
return boolean
    public function isRaw()
    {
        return $this->raw;
    }

Usage Example

Example #1
0
 public function testRawCookie()
 {
     $cookie = new Cookie('foo', 'bar', 3600, '/', '.myfoodomain.com', false, true);
     $this->assertFalse($cookie->isRaw());
     $cookie = new Cookie('foo', 'bar', 3600, '/', '.myfoodomain.com', false, true, true);
     $this->assertTrue($cookie->isRaw());
 }
All Usage Examples Of Symfony\Component\HttpFoundation\Cookie::isRaw