TerryJones
Programmer
Dear all,<br><br>I have 2 scripts (1 for Admin & 1 for authorised users). Currently both of these scripts store the Login username & password in the same location (in cache I think it is).<br><br>This is a problem as the Admin has to close the browser & start up a new one (to remove login in cache I presume) to be able to login as a User.<br><br>If anyone knows how to remove the login in cache, or preferrable how to set diff locations, please inform ... my code is:<br><br>FOR ADMIN:<br><?php<br> if(!isset($PHP_AUTH_USER)) {<br> Header(" Basic realm=\"Admin\""<br> Header("HTTP/1.0 401 Unauthorized"<br> echo "Text to send if user hits Cancel button\n";<br> exit;<br> } else {<br> echo "Hello $PHP_AUTH_USER.<P>";<br> echo "You entered $PHP_AUTH_PW as your password.<P>";<br> }<br> ?><br><br>FOR USER:<br><br><?php<br> if(!isset($PHP_AUTH_USER)) {<br> Header(" realm=\"User Details\""<br> Header("HTTP/1.0 401 Unauthorized"<br> echo "Text to send if user hits Cancel button\n";<br> exit;<br> } else {<br> echo "Hello $PHP_AUTH_USER.<P>";<br> echo "You entered $PHP_AUTH_PW as your password.<P>";<br> }<br> ?><br><br>Thank you ... please advice!