CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 ASP having login redirect to different pages

Print topic Send  topic

Author Message
Mpaull
Posted: 01/07/2002, 2:41 PM

Does any one know how to have the login page redirect to differnet pages based on a value in the users table? The users table has a username and password and a typeofuser field based on that value it should redirect to one of the two main pages. Help!
Allen
Posted: 01/07/2002, 5:04 PM

You can click "Obtain Generated Code" button in login form's "Custome Login" event. And then you can modify the redirect page name.
Nicole
Posted: 01/08/2002, 2:17 AM

Hello,
refer to article that describes it:
http://www.gotocode.com/art.asp?art_id=55&
But I recommend you to create CustomLogin event on Login form and add the code proposed in the article right after the session variables are created.
mpaull
Posted: 01/08/2002, 3:17 PM

Thank You for all of your help!!
Al Cole
Posted: 11/23/2002, 7:24 AM

I tried the script from the article, (http://www.gotocode.com/art.asp?art_id=55&) but am getting an error trying to load page

if Session("UserRights") = 1 then response.redirect("access.asp") else if Session("UserRights") = 2 then response.redirect("bagley.asp") else if Session("UserRights") = 3 then response.redirect("aldons.asp") else response.redirect("login.asp" )

I then specified that this new page ("redirect") is the Form Action of the Login page.


Am I missing something here.

   


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.