Shot? Why? (laughs!)

I use CGI::Session stand-alone in one application and through CGI::Application in many others. Yes, I use a database table. Dont forget you can store information of yourown in the session. In a shopping cart I store the complete transient cart in the session until the user goes to the checkout.

CGI::Session with alittle bit of code will manage the session, what else you need to do witht he session and its data is up to you. Some of the extras you are suggesting are esilly handled with various frameworks - if they need to be addressed at all. Remote user names, IP's and such are in the CGI query, or in the ENV variables for the instance. Current session will usually come back to you in a cookie and is handled by CGI::Session so you don't really need to ask for it, just use it!

Like lots of things in Perl, it happens by magic :) Have you read the tutorial that comes withthe module yet?

jdtoronto


In reply to Re: open sessions management by jdtoronto
in thread open sessions management by leocharre

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.