The EuroCMS Core Cookies Code
This will fill up the EuroCMS cookies per HTTP_HOST
code
The code in short:
$cookie_name = constant('cookie_id');
$cookie_domain = constant('cookie_domain');
$cookie_expires = constant('cookie_expires');
$httpOnly = constant('httpOnly');
$path = constant('path');
$samesite = constant('samesite');
$secure = constant('secure');
$value = constant('value');
setcookie("$cookie_name", "$value", "$cookie_expires", "$path","$domain","$secure","$httponly");
# setcookie(name, value, expire, path, domain, secure, httponly);
The code in lenth:
class cookie {
const name = '';
const value = '';
const expires_or_options = '';
const path = '';
const domain = '';
const secure = '';
const httponly = '';
const options = '';
public function set($cookie_name, $value, $cookie_expires, $path,$domain,$secure,$httponly) {
setcookie("$cookie_name", "$value", "$cookie_expires", "$path","$domain","$secure","$httponly");
}
}