SECURITY WARNING: This code uses a hard-coded user-name and
password, which begs the question of where they would come from
in the real world. You could collect them via a form, but then
they will be sent to the PHP script as arguments and so the
password will be visible in the URL box
Aaron and I have discussed this offline. He has a PHP front-end running on
one server which he is using to control access to pages on another server
(the target). He wants the front-end code to collect and check the user's
credentials, then request an appropriate URL from the target and relay
Your question is not very clear, not to me anyway.
Are you trying to write some PHP code that remembers a user name and
password over several requests? If so, I can answer that.
According to me, it's hard. The problem is that PHP (in fact Apache itself)
doesn't remember any information
I'm trying to do a similar thing, although I'm running PHP as an Apache
module. There's a directory I want to protect, containing PDf files, access
to which will be constrained by .htaccess.
Our users have already logged in through a custom login script. I could
modify this script so that
4 matches
Mail list logo