How can I make this code work the way I want it to.
<font class="nu"><b>
<% If Session("Authenticated") = 0 Then %>
<p align="center"><font class="nu2"><font color="#FF0000"><b>The Employees Only section requires Login.</b></font></font></p>
<p align="center">Sorry, But The Login ID Or Password You Supplied Are Either Incorrect Or Do Not Exist.</p>
<p align="center">Please Try Your Login Again.</p>
<meta http-equiv="Refresh" content="5; URL=<% =Request.ServerVariables("HTTP_REFERER") %>">
<% Else %>
<% If Session("Authenticated") = 1 Then %>
<p align="center">You Have Logged On Successfully!</p>
<meta http-equiv="Refresh" content="2; URL=http://www.mywebsite.com/employees/index.asp">
<% End If %>
<% Response.End %>
<% End If %>
</b></font>
The problem I am having is this.
When login is incorrect you get the error message in the first IF statement and then redirects back to the login page like it should, but if you type in the right information, you get the message in the second IF statement like you should but it does not redirect to the page I want. It just redirects back to the login page from the first IF statement.
What am I doing wrong with this code?
Can someone help me figure this out? I have been messing with it for about 4 hours now.
Thanks in advance.
Sincerely,
JGonier