Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > feedmelinks.com/testing/group-caches.php
<%
	# $Id: group-caches.php,v 1.1 2004/11/20 06:09:34 hirokai Exp $

	include_once( "../modules/utils.inc.php" );

	$sessionCachedGroupCounts[4096] = '__anchor';
	$sessionCachedGroupPublicFlags[4096] = '__anchor';
	$sessionCachedGroupList[4096] = '__anchor';

	session_register("sessionCachedGroupCounts");
	session_register("sessionCachedGroupPublicFlags");
	session_register("sessionCachedGroupList");

	$tok =  $_COOKIE["c_pass_token"];
	$u   =  $sessionUserId = $_COOKIE["c_uid"];
	
	# first, set up options and defaults.

%>
<h1>GROUP CACHE TESTING PAGE</h1>

<a href="/login?op=logout">LOG OUT</a>
<p />
<% 
if( true ) {
%>
<div class="attention">
<h3>DEBUGGING INFO.</h3>
CACHED GROUP STUFF:<br/>

<%
	print count( $sessionCachedGroupList ) . " groups<br/>";
	print "sessionCachedGroupList[0]: " . $sessionCachedGroupList[2] . "<br />";
	print "sessionCachedGroupCounts[0]: " . $sessionCachedGroupCounts[0] . "<br/><br />";
	print "<b>\$sessionCachedGroupCounts:</b><br />";
	print_r( $sessionCachedGroupCounts);
	print "<br/><br />";
	print "<b>\$sessionCachedGroupPublicFlags:</b><br />";
	print_r( $sessionCachedGroupPublicFlags);
	print "<br/><br />";
	print "<b>\$sessionCachedGroupList:</b><br />";
	print_r( $sessionCachedGroupList);
%>
</div>
<%
}
%>
Return current item: FeedMeLinks, Social BookmarkingSince2002