I am trying to save parameters being passed from Flash,
Flash is sending parameters using GET and there are too many to send all of them so I must split them into 3 different GET.
so I am using perl and CGI::Session to save the parameters, and then loading back up and saveing all of the parameters to a Hash.
I can't seem to get it to properly work, I am not really familure with sessions, so I have been reading up on them, yet still not profiecent.
UPDATE:
well I got the parameters being passed to save in the session but I am haveing difficulty loading the parameters up again and pushing the loaded parameters to the new parameters passed in a hash, not sure if I am totaly getting the concept, any help would be great
#!/usr/bin/perl -w
BEGIN {
use CGI::Carp qw(carpout);
open(\*MYLOG, '>>', "sessions.log") or
die("Unable to open perl.log: $!\n\n");
carpout(MYLOG);
}
use CGI;
use CGI::Session;
use strict;
my $q = new CGI;
print $q->header( "text/html" );
my %valueHash;
GrabParams();
my $session = new CGI::Session(undef, undef, {Directory=>'tmp/sessions
+'}) or die CGI::Session->errstr;
my %newHash = $session->param('valueHash');
%newHash .= \%valueHash;
foreach(%newHash){
print $_."<br>";
}
$session->param('valueHash', \%valueHash);
sub GrabParams{
my ( $paramName, $paramValue);
foreach $paramName ($q->param) {
foreach $paramValue ($q->param( $paramName )) {
$valueHash{ $paramName } = pack 'U0A*', $paramValue;
}
}
}