[ic] Measuring overall "size" of sessions

Peter Ajamian pajamian at pajamian.dhs.org
Wed Nov 25 23:41:36 UTC 2009

On 26/11/09 05:21, Rick Bragg wrote:
> Hi,
> I would like to do some testing and I am wondering if there is a simple
> way to find the "size" of a particular session in terms of the total
> size of all the variables that are set, and maybe display in somewhere
> in the page.  For example, I have lots of fly pages and I am setting
> some variables on each display.  I want to see the total size of all
> those variables set for given session at a given time.

Assuming that by "session" you mean the values space and by "size" you
mean the total length of all variables concatenated together then the
following code should do it:
	my $total_length = 0;
	foreach (values %$Values) {
		$total_length += length;
	return $Total_length;


More information about the interchange-users mailing list