direct authentication with http headers <?php file://if some_variable is NOT set then redirect to some other location session_start(); if (!isset($HTTP_GET_VARS["some_variable"])) { header( 'Location: http://www.yourfavoritepage.com/login.php?v=nogo' ); } ?> <html> <!-- Your html code goes here --> </html> THIS E-MAIL MESSAGE AND ALL ATTACHMENTS TRANSMITTED HEREWITH ARE TRADE SECRET AND/OR CONFIDENTIAL INFORMATION INTENDED ONLY FOR THE VIEWING AND USE OF ADDRESSEE. IF THE READER OF THIS MESSAGE IS NOT THE INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY REVIEW, USE, COMMUNICATION, DISSEMINATION, DISTRIBUTION OR COPYING OF THIS COMMUNICATION IS PROHIBITED. IF YOU HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY THE SENDER IMMEDIATELY BY TELEPHONE OR ELECTRONIC MAIL, AND DELETE THIS MESSAGE AND ALL COPIES AND BACKUPS THEREOF. THANK YOU FOR YOUR COOPERATION. -----Original Message----- From: BAROILLER <baroiller@daoditu.com> To: php-general@lists.php.net <php-general@lists.php.net>; php-db@lists.php.net <php-db@lists.php.net>; php-windows@lists.php.net <php-windows@lists.php.net> Date: Wednesday, October 16, 2002 2:15 AM Subject: [PHP] Re: Need help with HTTP-Authentication >Hi, > >a simple question.. :) >how do you do ? >You can use 2 methods : >with a .htaccess file on your webserver, updated with your table fields >or a direct authentification with http headers and a little bit of php... >Tell me more? may be I could help you. > >Regards, >P.E. Baroiller > >"Davy Obdam" <info@davyobdam.com> a écrit dans le message de news: >001901c2747e$fa0184a0$9600000a@davy... >> Hi People,. >> >> I have a problem with HTTP-Authentication, i have 2 users in my >> database, and i want both to be able to login. However it works, but >> only the first user is able to login. I Use a MySQL 3.23.xx database, >> PHP 4.2.3 and Apache 2.0.40. Can anyone help me with this, any help >> would be greatly apreciated. Thanks already;-)Maybe some examples?? ;-) >> >> Best regards, >> >> Davy Obdam, >> mailto:info@davyobdam.com >> >> >> >> > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > >
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php