PHP-Authentication works like the Tomcat authentication. You give the source to authenticate against (DB, file, XML-RPC, etc.) and the directories that shall be protected, and the class handles the rest. No including of any call to a class method on every page is necessary. You can also use it as if it were a standard Auth-class, using a call to "isLoggedIn" on every page that shall be protected.
| Tags | Internet Web Site Management Software Development |
|---|---|
| Licenses | PHP |
| Implementation | PHP |
Recent releases


Changes: Optional logging using the 'logFile' option was added. Session handling was cleaned up, and globals are no longer used. Issues with Windows were fixed, and the isUrlProtected method was optimized to work better under Windows.


Changes: A new 'ignoreForHash' option was added, and many E_ALL warnings were fixed.


Changes: This release includes a stable LDAP authentication module.


Changes: The package can now be installed using the pear installer. Support was added for LDAP, NIS, IMAP, and POP3. The setData method now also takes an array for adding more data at once. Some minor fixes and changes were made.


Changes: This release works properly on PHP 4.1 and later. There are some bugfixes. Upadting is recommended, especially if you use the memory container. This release will save GET data for a requested URL, which makes integration of Auth in an existing application even easier.
- All comments
Recent commentsConfiguration for each File/Directory desired?
I was thinking if I implement a mechanism, which lets you put a simple xml-file in a directory, or in each file, which lets you determined how the current page/directory shall be protected. Is there any interest for such a thing?
The following example piece of XML, could then go either in the file or directory for which those options shall be set.
Example:
<Auth>
<options>
<!-- protect the current file/directory?? -->
<protect value="no"/>
<!-- define the login page for this file/directory --->
<loginPage value="/path/to/specialLogin.php"/>
</options>
</Auth>