Passwordprotection please help

  • Thread starter Thread starter Ted Ljong
  • Start date Start date
T

Ted Ljong

Hi
FP 2000, Acess 2000
I want to create passwordprotection with multiusers, (superusers and users).
Superusers with access to all pages and users only to some pages. Is there
anyone can give me a clue?

Thanks
Ted
 
One way is to create a level code each user type and then valid each page
against that level code.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
My idea was to create a db with 3 fields, user passw and access. Access with
2 options A or B. A for users B for superusers. But I just cant get the code
to work. Do you know any site where I can find some examples or a site that
are selling aspscript like this.
Ted
 
Ted,

I don't know of any sites that have example or sample script, I always code
my own.

Basically, I code similar to the following to control the menu option that
each user level would have access to.


Session("Access") = objRS("Access")
Session("Authenticated") = 1

<% If Session("Access") = "A" then %>
Link 1
Link 2
Link 3
Link 4
<% End If %>
<% If Session("Access") = "B" then %>
Link 1
Link 2
Link 3
Link 4
Link 5
Link 6
Link 7
Link 8
<% End If %>

Then on the pages for Link 1 thru Link 4

<%
If Session("Authenticated") <> 1 Then
Response.Redirect "Login.asp"
End If
%>
HTML content of Page

Then on the page for Link 5 thru Link 8, as double check

<%
If Session("Authenticated") <> 1 Then
Response.Redirect "Login.asp"
End If
%>
<% If Session("Access") = "B" Then %>
HTML content of Page
<% End If %>

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Thanks Thomas
This will be a great help
Ted

Thomas A. Rowe said:
Ted,

I don't know of any sites that have example or sample script, I always code
my own.

Basically, I code similar to the following to control the menu option that
each user level would have access to.


Session("Access") = objRS("Access")
Session("Authenticated") = 1

<% If Session("Access") = "A" then %>
Link 1
Link 2
Link 3
Link 4
<% End If %>
<% If Session("Access") = "B" then %>
Link 1
Link 2
Link 3
Link 4
Link 5
Link 6
Link 7
Link 8
<% End If %>

Then on the pages for Link 1 thru Link 4

<%
If Session("Authenticated") <> 1 Then
Response.Redirect "Login.asp"
End If
%>
HTML content of Page

Then on the page for Link 5 thru Link 8, as double check

<%
If Session("Authenticated") <> 1 Then
Response.Redirect "Login.asp"
End If
%>
<% If Session("Access") = "B" Then %>
HTML content of Page
<% End If %>

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Back
Top