[nycphp-talk] best code for Login !.
rainman at deroo.net
Fri Jun 14 08:11:46 EDT 2002
> How would this work:
> $myparadigm = new Paradigm;
> if( $myparadigm->Result === LOGGED_IN )
> header('Location: http://me.com/protected.php');
> header('Location: http://me.com/login.php');
I used to use this type of approach. However I found that more and more
clients have files which they want protected, not just pages. A such I've
moved towards mod_auth_mysql or mod_auth_ldap (depending up on size and
availability). I realize that I can (and have) write a page that will get a
file on the file-system and pass it through to the user. However the added
URL complexity tends to confuse the most users.
More information about the talk