Re: advise needed for 'authorized only' site

From: Date: Mon, 23 Sep 2002 15:33:50 +0000
Subject: Re: advise needed for 'authorized only' site
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21939@lists.php.net to get a copy of this message
> I have set up a section of my company site for use by authorized dealers > only. I am currently using > mysql authorization, which works for the first page, but if someone were to > type in the url of an > underlying page they would be able to get in without authorization. I know > I could use .htaccess > for handling this but with a minimum of 350 -400 users to keep track of > that would be unwieldly to > say the least, especially for my boss who doesn't have a clue about *nix > and has never even heard > of .htaccess. > > What other options do I have to keep the underlying pages from being > accessed without the user > being forced to go through the logon screen? You have to make a check on every page that the user is valid. Start a session on the first page, after they log in, and then check for a variable in this session on each subsequent page. If it's there, then they are good. ---John Holmes...

« previous php.db (#21939) next »