This topic is locked

redirect to a website based on login

3/5/2004 09:10:44
ASPRunnerPro General questions
author

I have an access database with usernames, passwords, id's, and websites. i wanted to know if there was a way to redirect a person to another site based on there login? something like <meta http-equiv=refresh content="Website field Result here"> do you know the exact code to do this?

Sergey Kornilov admin 3/10/2004

The best place to implement this is login.asp file.
Here is the code from login.asp that redirects user to start page if login was successfull. You can change it to redirect user to any URL based on login name.

 Â

If Not rs.EOF Then

   Session("UserID") = Request("username")

   Response.Redirect "cars_list.asp"

Else

   strMessage = "Invalid Login"

   Session.Abandon

End If