The code for passprotect.inc "resides" in the file named passprotect.inc that you should have created w/ notepad per the tutorial
you are following
The ASP include statement
<!--#INCLUDE File="passprotect.inc"-->
belongs in the top of your .asp pages you are protecting w/ the path adjusted, if necessary, to reflect the relative location of
file passprotect.inc
Nothing works unless you are running it on a Windows server that supports ASP
--
| Where does the code reside?
|
| I know I put the include file passprotect.inc at the top of my protected page.
|
|
| --
| Mike B
|
|
| "Bob Lehmann" wrote:
|
| > >> This is an include file that you will use for the top of each page
| > What's not clear?
| >
| > Bob Lehmann
| >
| > | > > here is the code, it is for a asp page
| > >
| > >
| > > --<%
| > > 'First we check to see if the user is logged in
| > > IF Session("Password") = "" THEN
| > >
| > > 'If their session is empty then we create a session for the current URL
| > they
| > > were requesting
| > > Session("ORI_URL") = Request.ServerVariables("Path_Info")
| > >
| > > 'Then we redirect them to the login page
| > > Response.Redirect("logon.asp")
| > > Else
| > > End IF
| > > %>
| > >
| > >
| > > here is the instructions:
| > > passprotect.inc
| > >
| > > This is an include file that you will use for the top of each page that
| > you
| > > want to password protect. The easiest way to create this is in Notepad.
| > Once
| > > you import this into FrontPage, change the name of the page from
| > > passprotect.txt to passprotect.inc. Here is the code:
| > >
| > > To add protection to your ASP pages, place the following line of code at
| > the
| > > top of each page before any other HTML tags:
| > >
| > > <!--#INCLUDE File="passprotect.inc"-->
| > >
| > > So, here is my question, do I just put the passprotect.inc at the
| > beginning
| > > of my page followed by the code?
| > > thanks
| > >
| > > Mike B
| > >
| > >
| > > "Chris Leeds, MVP-FrontPage" wrote:
| > >
| > > > it's probably just a script, it'd go into the page you want to password
| > > > protect.
| > > > didn't the file you have come with instructions?
| > > > Is it ASP, PHP, etc?
| > > >
| > > > --
| > > > Chris Leeds,
| > > > Microsoft MVP-FrontPage
| > > >
| > > > ContentSeed: great tool for web masters,
| > > > a fantastic convenience for site owners.
| > > >
http://contentseed.com/
| > > > --
| > > > | > > > > I have the code to do a password protect. where do i import his
| > file
| > > > into
| > > > > fromtpage at?
| > > > > how do I import it ? is it just a file copy?
| > > > > thanks
| > > > > --
| > > > > Mike B
| > > >
| > > >
| > > >
| >
| >
| >