Results 1 to 2 of 2

Thread: User Level Webpage Password

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    103
    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???



  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224
    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
  •  



Click Here to Expand Forum to Full Width