Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Eric8000 #1
User Authentication Problem
I've created a login page which checks the user's access level against an
Access database. Works fine for level members 2 and 3. - 1 and 4 get denied.
Please see the code below. Thanks in advance! ' redirect user based on
Access level If Session('MM_UserAuthorization') = '1' Then
MM_redirectLoginSuccess = 'WelcomeEric.asp' ElseIf
Session('MM_UserAuthorization') = '2' Then MM_redirectLoginSuccess =
'WelcomeTrish.asp' ElseIf Session('MM_UserAuthorization') = '3' Then
MM_redirectLoginSuccess = 'WelcomeMyles.asp' ElseIf
Session('MM_UserAuthorization') = '4' Then MM_redirectLoginSuccess =
'WelcomeZvi.asp' Else MM_redirectLoginSuccess = '?Action=Failed' End If
Eric8000 Guest
-
Problem creating a new user with form authentication enabled
Hi I have implemented form authentication with login.aspx as the form to call if the user is not authenticated using the following in the... -
User Authentication
Hi All: I would like to have certain areas of a site that I am developing password protected but I am not sure how to go about doing this. I know... -
XP user authentication
Folks, Given the following function signature: bool AutheticateUser(string uid, string pwd); Can anyone tell me which .Net class.function API... -
SQL User authentication
Is it possible to authenticate user using a SQL database, containing users and passwords? What I want to achive is: I have as SQL database... -
DB User authentication.
Not a programmin newbie, but a PHP newbie. I'm working off the user authentication and database thing off hotscripts.com. It doesn't work, yet... -
Singularity.co.uk #2
Re: User Authentication Problem
Eric
Are you sure the values 1 and 4 are getting passed to the code? Try adding
the Session('MM_UserAuthorization') to the end of the Action failed to see
what value is passed. Something along the lines of:
Else
MM_redirectLoginSuccess = '?Action=Failed&UserLevel=' &
Session('MM_UserAuthorization')
End If
Brendan
"Eric8000" <webforumsuser@macromedia.com> wrote in message
news:d0317b$4i7$1@forums.macromedia.com...denied.> I've created a login page which checks the user's access level against an
> Access database. Works fine for level members 2 and 3. - 1 and 4 geton> Please see the code below. Thanks in advance! ' redirect user based> Access level If Session('MM_UserAuthorization') = '1' Then
> MM_redirectLoginSuccess = 'WelcomeEric.asp' ElseIf
> Session('MM_UserAuthorization') = '2' Then MM_redirectLoginSuccess =
> 'WelcomeTrish.asp' ElseIf Session('MM_UserAuthorization') = '3' Then
> MM_redirectLoginSuccess = 'WelcomeMyles.asp' ElseIf
> Session('MM_UserAuthorization') = '4' Then MM_redirectLoginSuccess =
> 'WelcomeZvi.asp' Else MM_redirectLoginSuccess = '?Action=Failed' End If
>
Singularity.co.uk Guest
-
CMBergin #3
Re: User Authentication Problem
A common problem is stray spaces in the database where you've stored the
access level. '1 ' is not the same as '1'.
"Eric8000" <webforumsuser@macromedia.com> wrote in message
news:d0317b$4i7$1@forums.macromedia.com...denied.> I've created a login page which checks the user's access level against an
> Access database. Works fine for level members 2 and 3. - 1 and 4 geton> Please see the code below. Thanks in advance! ' redirect user based> Access level If Session('MM_UserAuthorization') = '1' Then
> MM_redirectLoginSuccess = 'WelcomeEric.asp' ElseIf
> Session('MM_UserAuthorization') = '2' Then MM_redirectLoginSuccess =
> 'WelcomeTrish.asp' ElseIf Session('MM_UserAuthorization') = '3' Then
> MM_redirectLoginSuccess = 'WelcomeMyles.asp' ElseIf
> Session('MM_UserAuthorization') = '4' Then MM_redirectLoginSuccess =
> 'WelcomeZvi.asp' Else MM_redirectLoginSuccess = '?Action=Failed' End If
>
CMBergin Guest
-
Eric8000 #4
Re: User Authentication Problem
Thank you. Forgive me for not being an avid programer. So, I tried your
suggestion. When I go to the login page now, I get this... Microsoft VBScript
compilation error '800a0409' Unterminated string constant /peer/login.asp,
line 40 MM_redirectLoginSuccess = '?Action=Failed&UserLevel='&
------------------------------------------------------^ What do you think?
Eric8000 Guest
-
CMBergin #5
Re: User Authentication Problem
Make sure there's no line breaks. The whole command must be on one line
(the forum put a line break into the sample code which wasn't there).
"Eric8000" <webforumsuser@macromedia.com> wrote in message
news:d04hpm$gjk$1@forums.macromedia.com...VBScript> Thank you. Forgive me for not being an avid programer. So, I tried your
> suggestion. When I go to the login page now, I get this... Microsoft/peer/login.asp,> compilation error '800a0409' Unterminated string constantthink?> line 40 MM_redirectLoginSuccess = '?Action=Failed&UserLevel='&
> ------------------------------------------------------^ What do you>
CMBergin Guest



Reply With Quote

