You are here: Re: [PHP] Using PHP-based form authentication, circumventing existing Apache .htaccess "require valid-user" « PHP « IT news, forums, messages
Re: [PHP] Using PHP-based form authentication, circumventing existing Apache .htaccess "require valid-user"

Posted by "Richard Lynch" on 10/23/05 03:22

You USED to be able to do that by putting

http://username:password@example.com

but then Microsoft, in its infinite wisdom, decided that was a
"security risk" and stopped supporting it.

AFAIK, there's no way to SET the USER/PASS from server to browser...

Hmmmm.

You could maybe use cURL to login, then pass back all the responses to
the browser, and then the headers that make them be "logged in" would
work for both your login and their .htaccess.

The PHP Form and HTTP Auth part of all this for your first login is
documented right in the manual, so you needn't strain your brain on
that bit.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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