Reply to Re: [PHP] Using PHP-based form authentication, circumventing existing Apache .htaccess "require valid-user"

Your name:

Reply:


Posted by Robert Cummings on 10/23/05 02:45

On Sat, 2005-10-22 at 19:28, Dan Trainor wrote:
> Hello, all -
>
> I'm trying to think of how this might be possible, but I can't seem to
> come up with anything.
>
> I'd like to make a login form of sorts, which would enable a user to
> authenticate against. A simple HTML form, with a PHP back-end, where a
> user enters a username and password. If this authentication succeeds,
> the user is redirected to the protected area. However, this protected
> area was originally protected by an Apache .htaccess-style "require
> valid-user".
>
> After authentication succeeds, I'd like to redirect the user to the
> Apache protected directory, circumventing the .htaccess "require
> valid-user" method - because the user has already authenticated by some
> other means, and there's no need to re-authenticate against HTTP Basic
> Authentication.
>
> Anyone know if this is possible, and if so, how this might work? I'm
> just looking for some ideas here.

If you know the appropriate login and password then you can redirect
using the username and password in the url (not very secure though):

http://user:password@www.someplace.ext/blahBlahBlah.php

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

[Back to original 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

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