Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ie: http-username-password

Status
Not open for further replies.

andreas57

Technical User
Joined
Sep 29, 2000
Messages
110
Location
CH
microsoft has blocked the url transfer of username & password. they've proposed some work arounds like cookies ( ) but as always their useless.

i dont know if i have to use a special cookie or if my parameters are wrong:

setcookie('user', 'bob', 900,'/');
setcookie('password', 'xxx', 900,'/');
redirect to subfolder

i'd be thankful for help

andreas owen
aowen@swissonline.ch
 
Your cookie expired in the past. You need to use time()+900
Your value (900) is equivalent to December 31, 1969, 4:15 pm.
 
thanks for pointing that out, a very stupid mistake but my main problem is that i have login again for htaccess. do i have to make a special cookie for that like microsoft says?

andreas owen
aowen@swissonline.ch
 
The issue of authentication has probably more to do with your web server than PHP. I take from your mention of .htaccess that you use Apache. What version?
 
apache 1.3 but it's a iexplorer problem because you can't send login infos with the url anymore example: "user:password@
somehow i have to set a cookie or something so that my login script can redirect me to the protected folder without me having to login twice

andreas owen
aowen@swissonline.ch
 
Actually, there's a new update to IE that correctly fixes the URL problem. Mi¢ro$oft originally just put out a patch to shut off the functionality with the idea of leaving it shut off. But a bunch of programmers were able to prove it was a needed thing when producing DXML and DHTML pages.

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top