Click here to Skip to main content
15,886,864 members
Articles / Web Development / IIS

Protecting pages with include files

Rate me:
Please Sign up or sign in to vote.
3.86/5 (4 votes)
14 Sep 2000CPOL 137.6K   1.2K   35  
An article on how to easily password protect a site using include files
<HTML>
<HEAD>
	<TITLE>Test1</TITLE>
</HEAD>
<%
	Dim nURLID
	nURLID = 1
%>
<!--#include file="Protector.asp"-->

<BODY>
<h1>Test Page 1</h1>
<P>You should only see this text if you are logged.</P>

</BODY>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect VisionOne AG
Switzerland Switzerland
XicoLoko is a brazilian developer based in Switzerland.

Comments and Discussions