in reply to Re^2: Password Protect Directory
in thread Password Protect Directory

You can include the checking script from all the files in the folder, or you can have just one script that checks the cookie and then does various things based on parameters (thence, the URLs will be like members/onescript.pl?show=secret instead of members/secret.pl; in such a case, do not forget to check that the value of the parameter is valid).

Replies are listed 'Best First'.
Re^4: Password Protect Directory
by davidj01 (Novice) on May 05, 2010 at 03:07 UTC
    Hi,

    I need a clarification of what you mean.

    Lets say I have 1000's of html files under /members

    I want to put static links to the html files.

    If the user did not log in from a web form then I want the web server somehow to know they are not logged in and brings up the login page.

    If the user did login from an html web page and created a a session cookie I want the web server to allow the access

    Thanks/ David J.