RENDER() { <>

UCE Test: Session

string action = context->get["action"]; if(context->cookies["uce-session"].length() > 0) session_start(); if(action == "start") { session_start(); echo("action: starting session"); } else if(action == "store") { context->session["stored-value"] = make_session_id(); echo("action: storing value "+context->session["stored-value"]); } else if(action == "destroy") { session_destroy(); echo("action: destroying session"); } <>
Start Session | Refresh | Destroy Session | Store Value | Info
cookies));
		echo("SESSION:\n");
		echo(var_dump(context->session));

		?>
Params
params) ?>
}