Forum Moderators: open
this is test1.asp,test2.asp and test3.asp
When in test2.asp I change that it show the buttton, it alway's ask for sign in, but when I do a response.redirect, it sign's the user on automaticaly with his network ID, which is not correct, It MUST prompt the user for signon, and the go to a menu where the menu use build accourding the user rights.
ASP 1
<%
session("ui") = ""
Response.Redirect "test2.asp"
%>
ASP 2
<%
if session("ui") = "" then
response.Status = "401 access denied"
end if
if session("ui") = "" then
session("ui") = request.ServerVariables("LOGON_USER")
end if
'Response.Redirect "test4.asp"
'Response.write "+++" & session("ui") & "---"
%>
<form method="POST" action="test3.asp" id="form1" name="form1">
<!--webbot bot="SaveResults" u-file="../../_private/form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" --><p>
<input type="submit" value="Submit" name="B1"></p>
</form>
ASP 3
<%
if session("ui") = "" then
Response.Redirect "test1.asp"
else
if request.ServerVariables("LOGON_USER") <> "" then
session("ui") = request.ServerVariables("LOGON_USER")
else
Response.Redirect "test1.asp"
end if
end if
Response.Write session("ui")
Response.End
%>