Auth Usage
| From: | Cory Syvenky | Date: | Thu, 25 Mar 2004 06:22:47 +0000 |
| Subject: | Auth Usage | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-11482@lists.php.net to get a copy of this message | ||
Fellow Developers,
I have a login form for my application that is successfully using the Auth system to authenticate a user against a MySQL database, what I don't understand is what is the best way to make all the other pages in my application require this as well? Should I store this result in a session variable?
I was hoping it was going to be as easy as including the Auth/Auth.php file in all my pages and testing the getAuth result, if failure, then redirect back to the login page, if success continue to process the page.
cS