BearFramework\App\Response\Cookie

BearFramework\App\Response\Cookie {

    
/* Properties */
    
public string|null $domain
    
public int|null $expire
    
public bool|null $httpOnly
    
public string|null $name
    
public string|null $path
    
public bool|null $secure
    
public string|null $value

    
/* Methods */
    
public __construct void )
    public array 
toArray void )
    public 
string toJSON void )

}
Properties
public string|null $domain
The (sub)domain that the cookie is available to.
public int|null $expire
The time the cookie expires in unix timestamp format.
public bool|null $httpOnly
When TRUE the cookie will be made accessible only through the HTTP protocol.
public string|null $name
The name of the cookie.
public string|null $path
The path on the server in which the cookie will be available on.
public bool|null $secure
Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client.
public string|null $value
The value of the cookie.
Methods
public __construct ( void )
public array toArray ( void )
Returns the object data converted as an array.
public string toJSON ( void )
Returns the object data converted as JSON.
Details
Location: ~/src/App/Response/Cookie.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.