Re: Newbie Authentification help!!!

From: Date: Tue, 21 Nov 2000 02:09:31 +0000
Subject: Re: Newbie Authentification help!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26384@lists.php.net to get a copy of this message
Hi, How about just using Apache (or whatever) to password-protect that directory. I use this extensively on my site(s), and the "session" (not the technical term) stays open long enough that you can hop around and not worry about having to re-enter the password. Sometimes the simple approach works. This may work for you... Tom Beidler <tbeidler1@home.com> spoke thusly: > I'm trying to setup a secure area that uses user id/password login form and > MySQL database. I would also like to use cookies to set and store as > authentification variables so when I have other pages I can check for the > variable and redirect them to the login form if it is unset. > > Here's what I have so far. I've created a form that asks for a user id and > password and passes the values onto a main page/index page for the site that > validates the values. The SQL query is in the body of the html document. > Everything works fine on getting to that one page. > > Unfortunately I need to have this authentification apply to several pages. > How do I set the cookie and when? I've tried several possibilities but > everyone runs up against a stumbling block. I can't set the cookie when the > query is in the body. > > I know this is probably insufficient info but any help would be appreciated. > Especially if you could point me to a tutorial. > > Thanks, > Tom > >>> .>>.>>>.>>>>>.>>>>>>>>> > Tom Beidler > Orbit Tech Services > 805.455.7119 (cell) > 805.682.8972 (phone) > 805.682.5833 (fax) > tbeidler@mindspring.com >>> .>>.>>>.>>>>>.>>>>>>>>> > > > -- Best wishes, Erik J. Barzeski Home is where you hang your @ ************************************************ Email: erik@barzeski.com Web: http://www.barzeski.com/ http://www.soundsetcentral.com/ http://www.applescriptcentral.com/ AIM: iacas ICQ: 8186546 ************************************************

« previous php.general (#26384) next »