homepage Welcome to WebmasterWorld Guest from 174.129.130.202
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
URL for authenticated users in IE error
David_M




msg:3726002
 12:27 am on Aug 19, 2008 (gmt 0)

I'm trying to do a redirect to prevent users from having to log in a second time to a htpasswd protected directory.

The following works fine in Firefox, but gives me an error in IE.

Any ideas?

$blog=$_REQUEST["blog"];
$yourblog ="site.com/".$blog;
$directory = "http://".$user[login].":".$user[pass]."@".$yourblog;
header("Location: $directory");

 

eelixduppy




msg:3726031
 1:15 am on Aug 19, 2008 (gmt 0)

>> gives me an error in IE

What is the error that it is giving you? Try echoing out $directory to see if it contains what you want.

David_M




msg:3726037
 1:21 am on Aug 19, 2008 (gmt 0)

"Internet Explorer cannot display the webpage"

No error code given.

[edited by: David_M at 1:21 am (utc) on Aug. 19, 2008]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved