non-unique password

T

The Dollmaker

The instructions for creating a password-protected page seem to be geared
toward having the user choose their own password. I'd like to have one
password that everyone has to know in order to be able to look at the page.
How can I make that happen?
 
R

Ronx

If your site has FrontPage extensions, and the host supports subwebs
with unique permissions, then see

Password Protect Part of a Web: (Requires FrontPage extensions on
server, and host must support subwebs with unique permissions)
http://support.microsoft.com/default.aspx?scid=kb;en-us;301554 (FP2000)
http://support.microsoft.com/default.aspx?scid=kb;en-us;825451 (FP2003)

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/
 
P

Paul C

Hi
Here is a simple asp login supplied to me by Thomas. Just change the Login
password (third line down to yours)
Paul M



<% ' This goes at the top of each page to be protected above the opening
<html> tag.
Login=LCase(Request.Form("pLogin"))
If Login = "passw" Then
Session("Authenticated") = 1
Else
Session("Authenticated") = 0
End If
%>



<HTML>
<HEAD>
<TITLE>sample</TITLE>
</head>

<BODY>
<% If Session("Authenticated") = 1 Then %>
<p><b><font face="Arial" size="3" color="#000000">Content to see when logged
in</font></b></p>
<% End If %>
<P>
<% If Session("Authenticated") = 0 Then %>
<p><b><font face="Arial" size="3" color="#000000">log in box seen when not
logged in</font></b></p>
<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
<td valign="middle" align="center" width="100%"
bgcolor="#800000">
<table border="0" cellpadding="2" cellspacing="1"
width="100%">
<form method="POST" action="simplelogin1.asp">
<tr>
<td width="100%" valign="middle" align="center"
bgcolor="#FFFFFF"
height="50"><b><font face="Arial" size="2" color="#000000">UserID: </font>
</b><input type="text"
size="10" name="pLogin"> <input type="submit" value="Login"
name="Login"></td>
</tr>
</form>
</table></td>
</tr>
</table>
<% End If %>
</BODY>
</html>
 
P

Paul C

Hi Thomas just out of interest could the following code be changed to allow
for more than one password

<% ' This goes at the top of each page to be protected above the opening
<html> tag.
Login=LCase(Request.Form("pLogin"))
If Login = "passw" Then
Session("Authenticated") = 1
Else
Session("Authenticated") = 0
End If
%>

Thanks
Paul M
 
T

Thomas A. Rowe

Hi Paul,

I never tried it, but it should...

If Login = "passw" or Login = "passf" Then


--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
P

Paul C

Thanks Thomas works a treat
Best wishes
Paul M

Thomas A. Rowe said:
Hi Paul,

I never tried it, but it should...

If Login = "passw" or Login = "passf" Then


--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
Top