acme0101
|
| Posted: 05/01/2002, 5:00 PM |
|
I have a registration page similar to the sample application. However, I want the user to be logged in if they complete the registration process successfully. The sample app takes you to the login screen after registration. Does anyone have a good solution to this problem?
|
|
|
 |
Stefan
|
| Posted: 05/02/2002, 1:47 AM |
|
Look in Login.ASP at what it does when someone logges in...
Assuming you are using the members table in the portal sample project--all you have to do instead of redirecting to login.asp is
Session("UserID") = CStr(DLookUp("members", "member_id", "member_login =" & ToSQL(fldmember_Login, "Text") & " and member_password=" & ToSQL(fldmember_password, "Text")))
Session("UserRights") = CLng(DLookUp("members", "security_level_id", "member_login =" & ToSQL(fldmember_Login, "Text") & " and member_password=" & ToSQL(fldmember_Password, "Text")))
Best regards,
Stefan
|
|
|
 |
|