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

if (util_empty(session_id()))
	session_start();

function session_get($name) {
	$name = "session_".$name;
	return util_getfield($_SESSION, $name);
}

function session_set($name, $value) {
	$name = "session_".$name;
	$_SESSION[$name] = $value;
}

function session_remove($name) {
	$name = "session_".$name;
	if (array_key_exists($name, $_SESSION)) {
		unset($_SESSION[$name]);
		$_SESSION[$name] = NULL;
	}
}
?>
Return current item: Todo Manager