Re: Authentication through a login form

From: Date: Fri, 26 Jan 2001 23:45:19 +0000
Subject: Re: Authentication through a login form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36925@lists.php.net to get a copy of this message
By definition, if you want to use HTTP Authentication with the browser taking care of username/password automagically, you get that popup box. If you don't want the popup box, you need to "roll your own" with cookies etc. Fortunately, "roll your own" now mainly consists of doing this: <?php session_start(); session_register('foo'); session_register('bar'); #etc for each variable that is about to appear #in the script that you want to be "saved" #for other pages. #Other pages need session_start() at the top #and can register any "new" variables to add to the "save" list ?> Then, you just need a form with username/password and a submit button, and some way to look up who is or isn't valid so you can accept or reject their entry into the system. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: "Patrick Dunford" <dunfordsoft@clear.net.nz> Newsgroups: php.general Sent: Friday, January 26, 2001 10:23 AM Subject: [PHP] Authentication through a login form > I want to replace the popup dialog box that occurs when a user accesses a > password protected area, with a login screen. How do I do that? > > Someone told me I had to use a cookie to say the person is logged on and > read it whenever I needed to verify their access. > > Is it possible to trap the request made to the browser for a > username/password and then pass these back to the server whenever the server > requires authentication? > > ======================================================================= > Patrick Dunford, Christchurch, NZ - > http://pdunford.godzone.net.nz/ > > Blessed is the man who does not walk in the counsel of the > wicked or stand in the way of sinners or sit in the seat of > mockers. > -- Psalm 1:1 > http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010125 > ======================================================================= > Created by Mail2Sig - > http://pdunford.godzone.net.nz/software/mail2sig/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#36925) next »