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

Hi everyone. I have a website where users ultimately query a database that returns results to them via a CGI script I wrote that directly queries the mySQL database. I want to add a separate secure login section to the website so in the future other people working in my office, who are authorized, can access the database through the website to make any changes to it. Can I create this secure login part using Perl or do I have to learn PHP and use that?

Replies are listed 'Best First'.
Re: login addition to website
by davido (Cardinal) on Jan 24, 2014 at 01:08 UTC

    You can do it using Perl, or you could even do it via .htaccess, depending on your webserver. Within Perl, it becomes a discussion on session management and user authentication. For session management, look at CGI::Session. Perl and PHP are just languages. Whether you're using Perl, PHP, or some other language, it's up to you, the programmer, to deal with sessions and authentication.

    But frankly, it's a lot easier to deal with sessions in a modern web framework such as Mojolicious or Dancer. Mojolicious provides built-in sessions, and authentication can be simplified via Mojolicious plugins from CPAN.


    Dave

      Great, thank you so much.