I would like to POST http login credentials from domain A to domain B. Internet Explorer used to allow this type of url: http://username:password@www.somedomain.com/
But this was a phishing problem so they dont allow it anymore. Im not sure if there is a more simple way but I came up with this...
I POST from domain A to a script on domain B that sets the user/pass as cookies. This script resides in a directory that does not require http authentication. This script redirects to the member's home page (protected directory) which contains the following mock code:
If cookie "user" and cookie "pass" are set {
` run through AuthMySQL
` if (fail) prompt for Username/Password
` if (success) write cookies
} else {
` prompt for Username/Password
}
Is this possible with mod_rewrite? And if so, does anyone know mod_rewrite enough to maybe give an example??? Ive been sifting through documentation but cant find any examples that work.
-Dave