Russ has asked for the wisdom of the Perl Monks concerning the following question:

This question was moved from Categorized Questions and Answers.
Please do not vote for this node. It will affect the wrong user. Thank you. -- Q&AEditors

My data base is DB2, and I plan to have a dedicated table only for this module. That is to say, when a new user clicks on the link, he must be given a login form and stored in the table.

exixsting user should be thrown with userid and pwd going forward with validation and then throwing the results if he is found on a form?? please help

  • Comment on Login/Password module for CGI (Moved from Q&A)

Replies are listed 'Best First'.
Re: Login/Password module for CGI (Moved from Q&A)
by eak (Monk) on Aug 01, 2000 at 23:53 UTC
    What I would I would do is create a PerlTransHandler that is used as a gateway for authentication. You would probably have to use Apache::Session as well to track whether a user is 'new' or not. This is how it would work. A user would hit a link that requires authentication, which can be set at the apache conf level using 'PerlSetVar Auth 1' in a <DIRECTORY> directive, if they are not auth'd, rewrite the uri to take them to a login form. Existing users would be given the option to validate themselves. I am not sure exactly what you want to do with validated users, but chances are you will need some sort of cookie/session tracking. --eric