I use CGI::Session, it has various backends (DB_File, plain files, MySQL, PostgreSQL) and can be used with cookies or hidden form fields; it has also a little Cook book. I use it in conjunction with CGI::Application, see CGI::Application::Session for an example of use.
There are many nodes about this topic, use Super Search to find them... update: Tired of session/cookie problem, Secure Session Management, Tips for Using Apache::Session, Cleaning up sessions created by Apache::Session::File when logging out of a CGI application, non-cookie session maintenance, CGI::Application CGI::Session problem, practical aspects of sessions and state, CGI::Session::MySQL, CGI::Application::Session - A stateful extension to CGI::Application.

Ciao, Valerio


In reply to Re: How to Maintain State Information by valdez
in thread How to Maintain State Information by Nik

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.