Apr 16, 2001, 3:10 AM
Post #2 of 2
Re: .htaccess by passsing with browser login.
[In reply to]
Well, the first step is to build you form and everything, get your script to read the user/pass fields, then print location to the protected directory with the user/pass information in the url. This will by pass the login promt if the user/pass is right.
So your code would look kinda like this
#read form code
verify user and pass
print "Location: $URL\n\n";
Get what I mean, just have to redirect to the url, so don't print "Content-type: text/html\n\n"; unless their login is wrong.
I havn't been able to test out that url login thing since I've been too busy to setup a pass protected dir right now so I hope it works. First try to get into the protected directory by url then you'd be set.
Man, I'm beat, Nighters
Good Luck Ray,