What about CGI::Sessions isn't helping? It's not really about authentication. You'd have to think of some way to handle the login. Then you'd store some kind of $is_authenticated token in the session to show they've identified themselves.

If you want to use some relatively dependable authentication mechanisms but you don't want to write something locally, I'd suggest trying Authen::Bitcard. It is the simplest of the single sign on tech that I've tried. All the hard work is done for you. Once they authenticate just store that in the session and you're done.

I am particularly fond of this session setup:
my $ses = new CGI::Session('driver:DB_File;serializer:storable', $cgi);

There may be some security concerns, depending on where you store your flat file, but DB_File (aka Berkely DB) is really nice.

-Paul


In reply to Re: Sessions for perl without web server by jettero
in thread Sessions for perl without web server by haswalt

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.