http authentification
| From: | Roman | Date: | Sat, 12 Apr 2003 18:03:00 +0000 |
| Subject: | http authentification | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143616@lists.php.net to get a copy of this message | ||
Hello,
I'd like to setup special auth system.
I would have "Login" form with username and password. My php script would
authorize users and throw them into their own password protected
directories. Each user have one protected directory.
These directories are protected with .htaccess files.
I have this problem.
When my script authorise users and it did this:
Header("Location:
http://user:password@www.site.com/members/directory_of_user/");
unfortunatelly I get http authentification login box. (that's what I'd like
to avoid ;-))
Crazy is that user is let in after clicking "cancel".
Is there any other or correct way how to send http authentification
variables to scripts in protected directories so that apache won't show that
terrible username/password dialog ?
Best regards,
Roman