php auth instead of .htaccess

From: Date: Tue, 18 Mar 2003 19:01:28 +0000
Subject: php auth instead of .htaccess
Groups: php.general 
Request: Send a blank email to php-general+get-140166@lists.php.net to get a copy of this message
Hello, I have gotten used to using .htaccess to protect files/directories, but now I am looking at a need to authenticate against mysql. I have no problem actually getting it to authenticate, but I'm wondering what the simplest way to prevent someone from hitting anything other than the main page (and not needing authenticate) without having to login at every page. I'm assuming I would use something with sessions. Does anyone have a quick sample of how to do this? Any help would be great, I just need a step or two in the right direction. Thanks, Bryan

« previous php.general (#140166) next »