You are here: Re: Does this Auth script have an unwanted loop? « PHP Programming Language « IT news, forums, messages
Re: Does this Auth script have an unwanted loop?

Posted by AlexVN on 11/01/06 21:52

On Nov 1, 9:09 pm, "Phil Latio" <phil.la...@f-in-stupid.co.uk> wrote:
> Found the below script in a book I am reading.
>
> However it seems to me to fatal flaw that if you run it but type in the
> wrong the details, you're basically buggered. As far as I can see, whatever
> is initially entered into PHP_AUTH_USER and PHP_AUTH_PW are stored and then
> compared against the database. However #10 simply looks for the presence of
> data in PHP_AUTH_USER and PHP_AUTH_PW, finds something and compares it
> again in a loop you cannot break out of.
>
> Can someone confirm what I am saying or have I missed something obvious.

Looks you are right. Please consider the examples on
http://www.zend.com/zend/tut/authentication.php?article=authentication
When user provided wrong credentials, the 401 error should be sent
again.

Sincerely,
Alexander
http://www.alexatnet.com/ - PHP/ZendFramework/Ajax blog

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация