|
|
|
|
|
| | |
|
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
ASP USERNAME and PASSWORD Authentication |
From: |
Aaron |
Date: |
12/6/2000 4:14:35 AM |
IP: |
24.4.254.194 |
Im looking for a way to do this:
<?php
if (!isset($PHP_AUTH_USER)) {
header(WWW-Authenticate: Basic realm="My Private Stuff");
header(HTTP/1.0 401 Unauthorized);
echo Authorization Required.;
exit;
} else if (isset($PHP_AUTH_USER)) {
if (($PHP_AUTH_USER != "admin$id") || ($PHP_AUTH_PW != "abc123")) {
header(WWW-Authenticate: Basic realm="My Private Stuff");
header(HTTP/1.0 401 Unauthorized);
echo Authorization Required.;
exit;
} else {
echo "
<P>Youre authorized!</p>
";
}
}
?>
Which sends a "header" to the browser to AUTHENTICATE the user by using a "DIALOGUE BOX" with their USERNAME and PASSWORD!!
If I can get something that will at least pull that BOX up then I can work from there. This is a 2 day old problem from today! Anybody that can help can rest asured that it is greatly appreciated!!!
Thanks
-=/\aron=-
|
Follow Up - Re: ASP USERNAME and PASSWORD Authentication - Aaron 12/6/2000 8:56:20 AM
|
|

|
|
|
|
|
|
|
|
|
|