I am creating a login script which 1)has the login in form 2)then calls an external script to check the user name and password and 3)then goes back to the original or into the logged in page depending on the un/pw check. My question is how do I do a redirection from the external script back to the other script(s) and PASS PARAMETERS? I need to pass the sessionID mainly. I also need this to be safe so I'm not sure what the safest way is: a cgi redirection or a system call (I'm not very skilled in calling a script within a script, I've only done this a couple times)? Either way, how do I pass the parameters? And, I really don't want any information like the sessionID displayed at the top of the browser address bar (like the paramers). Any suggestions?

In reply to Passing cgi parameters from external script by shaolindoman

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.