Cgi Member Login Snippet (perl)

Need a Perl snippet that I can add to my cgi to check member logins. Needs to check User/pass and/or cookies against a MySQL/Postgres/SQlite database entry.

Input data: User/pass (via param() )
Cookie (not using CGI Cookie)
Database records (user,pass,cookie)

Output: $dir = “secure” or “unsecure”
set/clear a cookie

See attached Flow chart-

Leave a Reply

Your email address will not be published. Required fields are marked *