|
|
|
|
|
| | |
|
Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: ASP USERNAME and PASSWORD Authentication |
From: |
Aaron |
Date: |
12/6/2000 8:56:20 AM |
IP: |
24.4.254.194 |
I found out that this is kinda pointless due to the "fact" that you can NOT (from what Ive gathered) authenticate another USERNAME and PASSWORD. They MUST come from the NT Groups/Users Permissions list! But check out the code:
<% Response.Buffer = True %>
<%
if request.servervariables("HTTP_AUTHORIZATION") = "" then
response.status = "401 Access denied"
response.addHeader "PRAGMA", "NO-CACHE"
response.addHeader "WWW-Authenticate", "BASIC realm=Federal IT"
ELSE
Response.Redirect ("somepage.asp")
End If
%>
If you find anything different on "IF" you can authentication via another way with the dialogue box, maybe pulln from a db or something, then please let me know because Id really like to know!
-=/\aron=-
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|