non-unique password

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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/
 
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>
 
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
 
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
==============================================
 
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
==============================================
 
I disagree you have helped me a great deal through the years and helped me
to understand and create a database application which was far beyond my
interlect at the time, not to mention other asp related problems.
For me and there must lots of others who don't do web design for a living
but build the occasional web for friends and charities really appreciate
your help.

Paul M
 
Ok, we agree to disagree... I am glad that my responses over the years has help you.

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

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