access_asp thread: redirect based on username
Message #1 by "Andy Wischmann" <andy@9...> on Wed, 15 May 2002 09:31:46 -0500
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0127_01C1FBF3.54F4D240
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have a simple login page that allows a user to enter username and
password and have it authenticate against a MS Access table.
I'd like the redirect to go to a specific folder or virtual directory
based on the user's username: i.e. CustomerA gets redirected to
//server/customerA
What is the best way to do this?
thank you !
Message #2 by "Ken Schaefer" <ken@a...> on Thu, 16 May 2002 12:25:45 +1000
|
|
<%
' Store UserName's validity in blnValidUser as Boolean
If blnValidUser then
strRedirectURL = "/" & strUserName & "/"
Else
strRedirectURL = "/error.asp"
End If
' Clean up all ADO object etc
If not isEmpty(strRedirectURL) then
Response.Redirect(strRedirectURL)
End If
%>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Andy Wischmann" <andy@9...>
Subject: [access_asp] redirect based on username
I have a simple login page that allows a user to enter username and password
and have it authenticate against a MS Access table.
I'd like the redirect to go to a specific folder or virtual directory based
on the user's username: i.e. CustomerA gets redirected to
//server/customerA
What is the best way to do this?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|