CookieJar
class CookieJar (View source)
Properties
| protected | $cookies | ||
| protected | $clearedCookies | ||
| protected | $request | 
Methods
                    Cookie
                
                
                    set(string $name, string|null $value = null, int $expire = 0, string $path = '/', null|string $domain = null, bool $secure = false, bool $httpOnly = true)
        
                                            
                
            Adds a CookieObject to the cookie pantry.
                    add(Cookie $cookie)
        
                                            
                
            Adds a CookieObject to the array of cookies for the object.
                    bool
                
                
                    has(string $cookie)
        
                                            
                
            Used to determine if the cookie key exists in the pantry.
                    clear($cookie)
        
                                            
                
            No description
                    mixed
                
                
                    get(string $name, mixed $default = null)
        
                                            
                
            No description
                    Cookie[]
                
                
                    getCookies()
        
                                            
                
            No description
                    getClearedCookies()
        
                                            
                
            No description
                    getRequest()
        
                                            
                
            No description
Details
        
                            Cookie
    set(string $name, string|null $value = null, int $expire = 0, string $path = '/', null|string $domain = null, bool $secure = false, bool $httpOnly = true)
        
    
    Adds a CookieObject to the cookie pantry.
        
                            
    add(Cookie $cookie)
        
    
    Adds a CookieObject to the array of cookies for the object.
        
                            bool
    has(string $cookie)
        
    
    Used to determine if the cookie key exists in the pantry.
        
                            
    clear($cookie)
        
    
    No description
        
                            mixed
    get(string $name, mixed $default = null)
        
    
    No description
        
                            Cookie[]
    getCookies()
        
    
    No description
        
                            
    getClearedCookies()
        
    
    No description
        
                            
    setRequest(Request $request)
        
    
    Set a request for this cookie jar
        
                    protected        
    getRequest()
        
    
    No description