-
i want to create a login page for my website
with different login levels for different users
im using ultradev and sql7 can anyone help me??/
ie:
username password userlevel
john tester 1
johnny begood 2
i dunnoi where to start???
thanks
im new to asp but got experience with vb scripting???
-
Give Each user a PAssword based on their USer level
After Login Store their Access Level in a Session Variable.
At the Beginning of Each Protected Page. Put
<%
Response.Buffer = True
If Session("Access_Level")= 2 Then
'Not allowed
Response.Redirect "Notallowed.html"
ElseIF Session("Access_Level")= 1 Then
'Allow only to see the Article Introduction
'Do Whatever to Response.write the article's Introduction
ElseIf Session("Access_level")= 0 Then
'Full Access
'Response.Write the Entire Article
Else
Response.Redirect "Notallowed.html"
End IF
%>