I've been going over my project notes for the type of outsourcing I do. After everything's done & said, I notice the following general pattern, regardless of the exact type of work to be done : and in fact, that's general enough to describe most web transactions.
However, I note that most (all?) that I've seen will implement this in one giant script. I'm curious to people's opinions about modularizing these steps, so that you have a (e.g.)login.pl script, that when a user logs on successfully, calls get_request.pl that calls request_one_options.pl, etc, with appropriate parameters inbetween each script. I realize that security would be an immediate concern. It seems like a session server would be the best (most secure) way to prevent people from faking requests -- login.pl would instantiate a session, and then each successive script checks the params it's passed against the session, and responds appropriately if the session information doesn't match the params.

Is this too insecure? Is this Just A Bad Idea?


In reply to Futher contemplations on CGI -- putting a pipe paradigm into scripts. by boo_radley

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.