echo "Counter = {$counter}<br>"; echo "<h2>PAGE_LEVEL</h2>"; $script_name = $_SERVER["SCRIPT_NAME"]; echo "script_name = {$script_name}<br>"; echo "Setting \"orderBy\" array<br>"; $orderBy = array("status", "lname", "fname"); Session::page("orderBy", $orderBy); if ($orderBy = Session::page("orderBy")) { echo "OrderBy: "; print_r($orderBy); echo "<br>"; } else { echo "Not found.<br>"; } echo "<h2>DIRECTORY_LEVEL</h2>"; $script_name = $_SERVER["SCRIPT_NAME"]; $directory = dirname($script_name); echo "Directory = {$directory}<br>"; echo "Setting \"template\"...<br>"; Session::dir("template", "whimsical"); if ($template = Session::dir("template")) { echo "template={$template}<Br>"; } else { echo "template Not found<br>"; } echo "<h2>Entire Session Contents</h2>"; print_r($_SESSION); echo "<h2>PAGE_LEVEL Session Contents</h2>"; print_r($_SESSION["_PAGE"]); echo "<h2>DIRECTORY_LEVEL Session Contents</h2>"; print_r($_SESSION["_DIR"]);