Thx for the tips. I'm not one to reinvent the wheel. I have spent the last 48 hours looking for an easy way to do sessions and mostly what I find are things like the documentation and tutorials for CGI::Session and Apache::Session, all of which seem to be very barebone.

I did find out about CGI::Application, but I'm reluctant to use it for two reasons:

a) CGI::Application assumes that the HTML for a transaction gets accumulated into a scalar string, and then printed all at once at the end. My application can't afford to do that, because it is a search engine that typically takes 2 minutes to complete the search. It can't afford to wait those two minutes before displaying some results. Instead, it needs to display each search result as soon as it finds it. Maybe I could inherit from CGI::Application and inject a hook into it for printing html as soon as it gets generated, but that sounds like it would be very involved.

b) I already have a large application to which I need to add session support. I would have to do a major rewrite to cast it into the CGI::Application framework.

I'll look at some of the other links you provided, and hopefully I'll find what I need there. Alain

In reply to Re^2: CGI::Session keeps re-using same session ID by alain_desilets
in thread CGI::Session keeps re-using same session ID by alain_desilets

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.