CGI::Auth

Simple session-based password authentication for CGI applications.
Download

CGI::Auth Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • C. Chad Wallace
  • Publisher web site:
  • http://search.cpan.org/~ccwallace/

CGI::Auth Tags


CGI::Auth Description

Simple session-based password authentication for CGI applications. SYNOPSIS require CGI::Auth; my $auth = new CGI::Auth({ -authdir => 'auth', -formaction => "myscript.pl", -authfields => , }); $auth->check;CGI::Auth provides password authentication for web-based applications. It uses server-based session files which are referred to by a parameter in all links and forms inside the scripts guarded by CGI::Auth.At the beginning of each script, a CGI::Auth object should be created and its check method called. When this happens, check checks for a 'session_file' CGI parameter. If that parameter exists and has a matching session file in the session directory, check returns, and the rest of the script can execute.If the session file parameter or the file itself doesn't exist, check presents the user with a login form and exits the script. The login form will then be submitted to the same script (specified in -formaction). When check is called this time, it verifies the user's login information in the userfile, creates a session file and provides the session file parameter to the rest of the script. Requirements: · Perl


CGI::Auth Related Software