PHP_AUTH_USER and PHP_AUTH_PW
Posted: Fri Aug 01, 2003 9:09 pm
Is it possible to set and unset the $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] manually without the use of the prompt?
Let's say I have a protected folder with a username and password attached to it (obviously).. and during the execution of a php page I wanted to set the AUTH_USER and AUTH_PW to access the folder, include a file, and then unset the AUTH_USER and AUTH_PW.
Is this possible or does it all have to be done before any header info is sent?
Let's say I have a protected folder with a username and password attached to it (obviously).. and during the execution of a php page I wanted to set the AUTH_USER and AUTH_PW to access the folder, include a file, and then unset the AUTH_USER and AUTH_PW.
Is this possible or does it all have to be done before any header info is sent?