Lets say i have a folder domain.com/protected/ which is protected by .htacess.
I wish to redirect to the protected folder without the grey password prompt showing up. Is that possible?
I have tried to set $PHP_AUTH_USER and $PHP_AUTH_PW manually but that does not work.
and also like this:
$auth = $user.":".$pass ;
$string=base64_encode($auth);
header("Authorization: Basic = $string");
header("Location: $protected");
This does not work.... any ideas?