|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'm using Dreamweaver MX 2004 and have created a login page "login.asp" that, with the correct username and password opens to a new page "welcome.asp" I have created an Access Database with a Table called dbUsers In the Table, I have three columns, Username, Password and UserAuthent. I have created 3 Users each with their own username and password, and each has a Authentication level of 1, 2 and 3. 1 is Admin use. As it stands it works fine as i have set the "welcome.asp" page to accept all 3 Autnentication levels. It workes fine and the page opens, if I type in the incorrect username or password they go to "error.asp", and if I try to open the "welcome.asp" page directly I have set up a "accessdenied.asp" page. All this works fine, so what's the issue? I would like to set up the "welcome.asp" page so that if a user with Authentication level 1 or 2 logs in, then they both get different options on the page. I have tried using: <%if Session("MM_UserAuthorization")=1 Then%> <a href="user1.asp">User1</a> <%enf if%> as an example on the "welcome.asp" page, but the error returned is: Expected "(" and points and the Session as if a "(" should be between if and Session. Any help here would be appreciated. |
|
#2
|
||||
|
||||
|
Code:
If(Session("MM_UserAuthorization") = 1) Then
<a href="user1.asp">User1</a>
End If
|
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > User Authorization scripts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|