[ic] Measuring overall "size" of sessions
Gert van der Spoel
gert at 3edge.com
Wed Nov 25 19:32:19 UTC 2009
> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-
> users-bounces at icdevgroup.org] On Behalf Of Rick Bragg
> Sent: Wednesday, November 25, 2009 6:21 PM
> To: interchange-users at icdevgroup.org
> Subject: [ic] Measuring overall "size" of sessions
> 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.
I've a simple script in case I want to look into someone's session, which in
my case is stored on disk.
Perhaps it's a start ...
my $id = $ARGV;
my $d1 = substr($id,0,1);
my $d2 = substr($id,1,1);
my $root = "/my/path/to/session/dir";
If I then do ./readsession.pl sessionid:IPaddress
It dumps the content of the session. You can of course play around with the
results instead of dumping it.
More information about the interchange-users