Location: PHPKode > projects > Todo Manager > todo/library/cookie.lib.php
<?php
require_once $_SERVER["DOCUMENT_ROOT"]."/".FOLDER."/library/util.lib.php";

function cookie_get($name) {
	$name = "cookie_".$name;
	return util_getfield($_COOKIE, $name);
}

function cookie_set($name, $value) {
	$name = "cookie_".$name;
	setcookie($name, $value, time()+60*60*24*30, "/");
}

function cookie_remove($name) {
	$name = "cookie_".$name;
	if (array_key_exists($name, $_COOKIE)) {
		$_COOKIE[$name] = NULL;
		setcookie($name, NULL, time() - 1, "/");
	}
}
?>
Return current item: Todo Manager