Hi,
I need to find a solution to password protect files located in a folder of my web server.
Actually I have made a .htaccess file protection and it works, but what I need to do is a php script that after checking user name and password in a MySQL table, allow users to go inside such folder.
If check is ok, I have made this istruction to run:
header ("Location: http://user:password@www.domain.com/folder/");
in other words I am trying to pass user name and password directly in the URL so that users don't know which is the user and password I set and they don't need to type it.
But while such URL works if directly typed in the browser, called in such way still requires for folder user and password :-(
Could anybody give a little help to me or tell me another solution to my problem ?
Thank you very much!
Fabio