The way that almost all commercial-grade application servers do it is to create a unique string (e.g., based on a call to crypt() of a combination of the return value from time() and the user's IP address) and associate it with the user by an entry in, say, the session table in the database.

Then that session string is attached either via a CGI parameter or a cookie. Forcing users to accept cookies is so common these days that you really won't lose traffic by storing the session information in a cookie.

Since there is no private information stored in the session string, it really doesn't matter whether you use CGI parameters or cookies.

Certainly avoid at all costs putting user information such as user name or password in CGI parameters. It's about as flagrant a security hole as there is. Might as well just put all the user names and passwords on the login page for reference.

Hope this helps,

-Me


In reply to Re: How to easy transfer parameters betwen html pages. by Starky
in thread How to easy transfer parameters betwen html pages. by LiTinOveWeedle

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.