Password protect two separate folders within the root folder

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

Guest

I currently have a web site hosted by goDaddy.com. The web site pertains to
our High School 50th reunion. The site is SSL and password protected as it
contains personal information that we don't want available to the whole
world. I have a folder in the web site that that is named classsite and it
holds all of the password protected pages. I used the MS Article ID 825498
on how to create a pass-word protected Web Page. I am using FP 2003 and the
FP extensions are on the server. Password protection on the site works as
it was designed to work.

Now comes my question. I want to add another folder for another class from
our High School. I want the password protection to cover both folders with
access to both available when logged on.

My password database is in the root _private folder, my logon.inc file is
in the classsite/_private folder and all of the include lines on the pages
point to the classsite/_private folder as shown here:
"<% @language="vbscript" %>
<!--#include virtual="/classsite/_private/logon.inc"-->"

Will moving the logon.inc file to the root private folder and changing the
references to it on each password protected page be all I need to do? The
web site is called CHSNewSite on my computer, but is chsclassof62.com on the
web. If I changed it according to the instructions on the above referenced
article, the reference would be <!--#include
virtual="/CHSNewSite/_private/logon.inc"--> . That doesn't seem right to
me. I would like some advise from the experts before I try it and mess it
up.

Any help would be appreciated.

Thanks,
Lee Steele
 
You want to share a single database with 2 subwebs
- your DB should be in the root web
- in each of your Subwebs your DB connection should point to the db location in the root web
(so that each of your subwebs has its own global.asa)

Copy the logon.inc and any login or verification related pages to each of your subwebs
(in your case to the _private folder of each subweb)
- do not use server side includes or server side script pages outside of the subwebs


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I currently have a web site hosted by goDaddy.com. The web site pertains to
| our High School 50th reunion. The site is SSL and password protected as it
| contains personal information that we don't want available to the whole
| world. I have a folder in the web site that that is named classsite and it
| holds all of the password protected pages. I used the MS Article ID 825498
| on how to create a pass-word protected Web Page. I am using FP 2003 and the
| FP extensions are on the server. Password protection on the site works as
| it was designed to work.
|
| Now comes my question. I want to add another folder for another class from
| our High School. I want the password protection to cover both folders with
| access to both available when logged on.
|
| My password database is in the root _private folder, my logon.inc file is
| in the classsite/_private folder and all of the include lines on the pages
| point to the classsite/_private folder as shown here:
| "<% @language="vbscript" %>
| <!--#include virtual="/classsite/_private/logon.inc"-->"
|
| Will moving the logon.inc file to the root private folder and changing the
| references to it on each password protected page be all I need to do? The
| web site is called CHSNewSite on my computer, but is chsclassof62.com on the
| web. If I changed it according to the instructions on the above referenced
| article, the reference would be <!--#include
| virtual="/CHSNewSite/_private/logon.inc"--> . That doesn't seem right to
| me. I would like some advise from the experts before I try it and mess it
| up.
|
| Any help would be appreciated.
|
| Thanks,
| Lee Steele
|
|
 
Thanks for the reply Stefan.
I put together a quick test site. I placed the logon.asp page in the root
directory, the logon.inc and the logon.mdb in the root _private directory
and changed the include on each of the password protected .asp pages in each
of the two separate folders (sub-webs) to <!--#include
virtual="/_private/logon.inc"-->
That solved the problem. There was no global.asa involved.

Again, thanks for your help.

Lee Steele

Stefan B Rusynko said:
You want to share a single database with 2 subwebs
- your DB should be in the root web
- in each of your Subwebs your DB connection should point to the db
location in the root web
(so that each of your subwebs has its own global.asa)

Copy the logon.inc and any login or verification related pages to each of
your subwebs
(in your case to the _private folder of each subweb)
- do not use server side includes or server side script pages outside of
the subwebs


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I currently have a web site hosted by goDaddy.com. The web site pertains
to
| our High School 50th reunion. The site is SSL and password protected as
it
| contains personal information that we don't want available to the whole
| world. I have a folder in the web site that that is named classsite and
it
| holds all of the password protected pages. I used the MS Article ID
825498
| on how to create a pass-word protected Web Page. I am using FP 2003 and
the
| FP extensions are on the server. Password protection on the site works
as
| it was designed to work.
|
| Now comes my question. I want to add another folder for another class
from
| our High School. I want the password protection to cover both folders
with
| access to both available when logged on.
|
| My password database is in the root _private folder, my logon.inc file
is
| in the classsite/_private folder and all of the include lines on the
pages
| point to the classsite/_private folder as shown here:
| "<% @language="vbscript" %>
| <!--#include virtual="/classsite/_private/logon.inc"-->"
|
| Will moving the logon.inc file to the root private folder and changing
the
| references to it on each password protected page be all I need to do?
The
| web site is called CHSNewSite on my computer, but is chsclassof62.com on
the
| web. If I changed it according to the instructions on the above
referenced
| article, the reference would be <!--#include
| virtual="/CHSNewSite/_private/logon.inc"--> . That doesn't seem right
to
| me. I would like some advise from the experts before I try it and mess
it
| up.
|
| Any help would be appreciated.
|
| Thanks,
| Lee Steele
|
|
 
Back
Top