I have a standard logon.csp page that contains the following code:
Dim Sess
Set Sess = SessionManager.Logon (UserName,Password,APSName,AuthType)
If Err.Number <> 0 then
Response.Write "Logon has failed"
Else
'Do my logon bit.....
End if
If the user types in their password incorrectly, an error is thrown and the user redirected to a try again page.
However if the user enters their username incorrectly, but their password correctly the SessionManager.Logon does not throw an error, but simply fails to logon and leaves me with a blank screen. How can I trap the error?
Dim Sess
Set Sess = SessionManager.Logon (UserName,Password,APSName,AuthType)
If Err.Number <> 0 then
Response.Write "Logon has failed"
Else
'Do my logon bit.....
End if
If the user types in their password incorrectly, an error is thrown and the user redirected to a try again page.
However if the user enters their username incorrectly, but their password correctly the SessionManager.Logon does not throw an error, but simply fails to logon and leaves me with a blank screen. How can I trap the error?