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; } } }

In reply to Using Sessions to save Parameters by ikkon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.