SproutCMS

This is the code documentation for the SproutCMS project

class Cookie

Eases reading and writing cookies.

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-11-25
**/
class NewClassName extends Cookie {
    
    /**
    * Sets a cookie with the given parameters.
    **/
    public function set (string $name, string $value, integer $expire, string $path, string $domain, boolean $secure, boolean $httponly) {
        // Method code goes here
    }
    
    /**
    * Fetch a cookie value
    **/
    public function get (string $name, mixed $default) {
        // Method code goes here
    }
    
    /**
    * Nullify and unset a cookie.
    **/
    public function delete (string $name, string $path, string $domain) {
        // Method code goes here
    }
    
}
?>