Jay Bond
|
| Posted: 11/08/2002, 11:09 AM |
|
I am trying to get the login page to redirect to pages dependent upon groupid that the user belongs to:
The follwoing code just loops back to itself
Any IDeas as to what is wrong,
in the address bar I am getting IlligalGroup, but can't understand why?
Function Login_DoLogin_OnClick() 'Login_DoLogin_OnClick @3-FA16D195
'Login @4-A0860347
With Login
If NOT CCLoginUser(.login.Value, .password.Value) Then
.Errors.addError("Login or Password is incorrect.")
Login_DoLogin_OnClick = False
.password.Value = ""
Else
Select Case Session("GroupID")
Case 1 Redirect="case.asp"
Case 2 Redirect="case.asp"
Case 3 Redirect="case.asp"
Case 4 Redirect="admin_site.asp"
End Select
Login_DoLogin_OnClick = True
End If
End With
'End Login
End Function 'Close Login_DoLogin_OnClick @3-54C34B28
|
|
|
 |
Jay Bond
|
| Posted: 11/09/2002, 2:13 AM |
|
Sorry Everyone, the code was fine, the problem was the Groupid value in the user table had incorrect values.
Sorry.
BUT THE CODE WORKS FINE IF ANYONE ELSE WANTS THIS FACILITY
note make sure that the reurn page is blank.
|
|
|
 |
|