NYCPHP Meetup

NYPHP.org

[nycphp-talk] Apache/PHP Authentication

Jim Hendricks jim at bizcomputinginc.com
Fri Jan 17 11:32:33 EST 2003


I use PHP to authenticate against mySQL and then store login info in the
session.  Then it's a simple affair to check at the top of each page if the
login info is good, if not divert to login.  I have the code that checks the
login state as a seperate file that I include in all my pages that need to
be secured.

Jim
______________________________________________________________
Jim Hendricks, President, Biz Computing, Inc
Phone:  (201) 599-9380     Email: jim at bizcomputinginc.com
Web: www.bizcomputinginc.com
Snail:  Jim Hendricks,  Biz Computing, Inc.,  255 McKinley Ave, New Milford,
NJ 07646
______________________________________________________________

----- Original Message -----
From: "Griffith Feeney" <feeney at un.org>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Friday, January 17, 2003 10:30 AM
Subject: [nycphp-talk] Apache/PHP Authentication


> I would like to use Apache authentication to password protect certain
> directories that contain mostly binary files. With 1600+ users, I don't
> want to authenticate against a text file, especially as there is already a
> mysql database available for the purpose. The webhosting provider doesn't
> provide mod_auth.
>
> I'm thinking of using a PHP page to authenticate against the mysql
database
> and, once a user is authenticated, have the PHP page send the server an
> htaccess user name and password. The latter would be changed from time to
> time, but would be the same for all users. High security is not required
> here.
>
> I've spent many hours reading around on the web on the subject, but don't
> find anything along these lines, and being a rank beginner in PHP, I don't
> want to spend time trying to implement this idea if it is unworkable.
>
> Does anybody know of an implementation, or have an idea of whether or not
> this could be made to work? Thanks!
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>
>
>
>





More information about the talk mailing list