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

Hi, I have this problem, I want to create login access and use Mysql to store them.
I want to save the remote "username" as an when a new account is created or an account is updated.
I suppose that to use ENV{REMOTE_USER}, I need to authenticate using .htaccess,
but as I said I have an database based authentication.

Please help me!
Thank you.