|
-
Jan 7th, 2001, 10:40 PM
#1
Thread Starter
Lively Member
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???
-
Jan 8th, 2001, 01:13 AM
#2
Addicted Member
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
%>
If you can't pronounce my name, call me GURU 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|