yagna has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Perl Monks,
This is not a question regarding a particular perl code. I want some guidance regarding right approach.
I am trying to build a website that is available for logged in users only. I have a script that does simple username password authentication. After the login script does validation I want the user to be logged into the main webpage. The functionality is almost identical to what Perlmonks login page does. Once successfull authentication, it logs the person into main.cgi. Does the login page do the authentication and then redirection upon successful authentication? Or does the login page call another cgi that does validation and upon unsuccessful authentication redirect to the login page?
The application is a simple two page application: One login script and another landing page/script. The landing page will offer functionality via ajax calls.
Let me know if I am unclear.