how to pass user and password to an .htaccess page using php
Posted: Thu Feb 19, 2004 6:30 am
Hi all,
I have a webform to permit some user to login on neomail (Webmail software) ; on the webform they enter user ($user) and a password ($password) ; after that a simple php script was passing the $user and $password results in this way
<?
header("Location: http://$user:$password@mydomain.com/neomail.php");
?>
OK , it was working fine for years . It's stopped to work latest week after latest IE security patch !
With latest IE patch , http://user:password@domain.com is [b]no more[/b] allowed .
So , now, I am searching an alternative way to login my users
to http://$user:$password@host/neomail.php
I don't know if exists a php solution . I searched for hours on php documentation (header and authentication) , and asked help in other php forums , but at this time 0 solutions.
Any idea in this forum ?
Thank you.
I have a webform to permit some user to login on neomail (Webmail software) ; on the webform they enter user ($user) and a password ($password) ; after that a simple php script was passing the $user and $password results in this way
<?
header("Location: http://$user:$password@mydomain.com/neomail.php");
?>
OK , it was working fine for years . It's stopped to work latest week after latest IE security patch !
With latest IE patch , http://user:password@domain.com is [b]no more[/b] allowed .
So , now, I am searching an alternative way to login my users
to http://$user:$password@host/neomail.php
I don't know if exists a php solution . I searched for hours on php documentation (header and authentication) , and asked help in other php forums , but at this time 0 solutions.
Any idea in this forum ?
Thank you.