CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Auto login after successful registration

Print topic Send  topic

Author Message
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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.