Question & Answer
Question
Cause
Answer
This function will first check to see if the current session is logged on yet or not, which will not be true, and then it will check to see if the request came from one of four specific pages: default.aspx, ietest.aspx, utility.asmx or error.aspx.
If the request did not come from one of those four pages, the user will be immediately redirected to the default.aspx page.
To avoid being redirected, the custom logon page must contain default.aspx or ietest.aspx in the title. For instance, if the page is named SSOdefault.aspx or Mydefault.aspx, then you will not be re-directed to the logon page.
Also, in order to prevent viewstate errors, be sure not to include the runat=server declaration in the form tag.
Sample SSOdefault.aspx page:
<%@ Page Title="" Language="C#"%>
<html>
<body>
<script runat="server">
</script>
<form id="frm1" method="post" action="~/default.aspx">
<input type="hidden" id="hdApp" name="hdApp" runat="server" value="APT" />
<input type="hidden" id="hdFuid" name="hdFuid" runat="server" value="admin" />
<input type="hidden" id="hdPwd" name="hdPwd" runat="server" value="admin" />
<input type="hidden" id="hdStn" name="hdStn" value="1"/>
<input type="hidden" id="hdRedir" name="hdRedir" value="jmonitor.aspx"/>
<input type="submit" name="Logon" id="sbmt" runat="server" />
</form>
</body>
</html>
Was this topic helpful?
Document Information
Modified date:
09 March 2021
UID
swg21638536