If you can't use hidden tags anymore but you still want the browser to keep all the information, you can resort to cookies. Check this if you're unfamiliar with them, paying particular attention the limitations in terms of number of cookies and size. They can matter if you carry lots of forms data.

There are many modules on CPAN helping you handling cookies, you definitely know CGI.pm as it's in the standard distribution, but I also like Apache::ASP.

Also keep in mind security implications of having the browser reporting the information (via cookies or hidden tags) as it can be easily forged and/or eavesdropped.

If you want to keep the information on the server side, you have many options. Apache::Session or Apache::ASP's $Session variable might be a good starting point.

If you want to write on your own files, you have to be very careful when yuo choose a file name, you decide whether a file name is shared among all sessions or it belongs to a single session, you have to thing about cleaning it up when a session ends (or after a certain timeout).

Many of these considerations (especially session cleanup, less problem with concurrent access) apply to database tables too. Perl has the wonderful DBI interface in this case. If running under Apache, Apache::DBI may help improving performance.

To keep it short, considering that you are a beginner, I'd suggest to use Apache::Session (or similar) or a cookie approach.

-- TMTOWTDI


In reply to Re: encoding/decoding perm storage by trantor
in thread encoding/decoding perm storage by new_2_perl

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.