Setup Code Installation
Setup Code Installation *** SLA UNIT MEMBERS ONLY CODE INSTALLATION (7/11/2001)***

PART I: REQUIREMENTS

In order to use the SLA unit members only feature, any pages to be password-protected must meet or be made to meet the following requirements:

(1) Be hosted on SLA's server
(2) Have file names ending in ".cfm"

If you have existing html or shtml files that you wish to include in your members only area, you can simply rename the files (and adjust any links accordingly). When producing new files, create them as you would any html file, but be sure to save with a *.cfm extension so that the server will recognize them as Cold Fusion files and execute the Members Only code.

PART II: SET-UP

(1) It is recommended (but not required) that you create a separate folder to hold all members only files. The default page in this folder (named index.cfm) would then serve as your members only home page.

(2) Move/rename or create *.cfm files within this folder.

(3) At the very top of each page (before any html code), add the following code:

<CF_MEMBERSONLY2 giveaccessto="X">

"X" should be replaced with the official abbreviation for your unit, e.g. "CWDC". Any members whose membership records indicate a current affiliation with the unit code provided in the "giveaccessto" parameter will be allowed to log-in to this page. Other members and non-members will be prevented from seeing the page's content.

(4) *** OPTIONAL *** The code in step 3 will access the default login screen which is a very plain white with black text. If you would like to add your logo, change colors, alter the various messages outputted when users logon attempts fail, time-out, etc, you will need to provide custom override files. Instructions for doing so are included in the document CustomizationInstructions.txt. It's suggested that you get the base version up and running first before beginning customization.

PART III: USAGE

Usage is fairly straight forward. Any page with the members only lock will query people attempting to load it for their username & password. Upon successfully entering the username and password, the page will be loaded, and a cookie indicating a valid user will be set. Should the cookie be denied (manually or automatically) the user will have to re-enter the username and password each time a protected page is loaded. Otherwise, the cookie will persist until the browser is closed, allowing continued access to any protected files.

Privacy Statement
©2009 Special Libraries Association. All rights reserved.
331 South Patrick Street Alexandria, VA 22314-3501 USA