I see a few problems

urls are hardcoded ...

debugging via log ... eew

$global_session ... super yuck

random suspicious or die on $! usage not seen in the docs

CGI::Application::Plugin::Session is broken as session_config seems to have no effect

your logic is fudgy, you don't use P/R/G

both collect_data and display_data are the same form, and pretty much the same code, and in both codes you fetch data from the $cgi_query and not from the $session -- this is fudge -- and in both display and collect you save data into session -- display is display

I think having templates and logging and "everything" is confusing you (it confused me), its just a lot of stuff to juggle

You should start with pictures, for example

collectPage presents a form processes form submission if got valid data save data into session redirect via get to displayPage if got invalid data show form again while explaining what data is bad displayPage if session display data from session if no session give link to collectPage

In reply to Re: Checkbox parameter not being stored in CGI::Session by Anonymous Monk
in thread Checkbox parameter not being stored in CGI::Session by perlron

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.