Re: http->https->http redirection causes browser to show alert dialog

From: Date: Thu, 13 Mar 2003 14:06:46 +0000
Subject: Re: http->https->http redirection causes browser to show alert dialog
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139493@lists.php.net to get a copy of this message
> I have a login page with a form where users enter there login and > password. The form's action is > "https://mysite.com/login.php". > > login.php authenticates the user and if the authentication is successful > it ends with a: > > header("Location: IäùR\ > yyLB¯�áÖ„http://mysite.com/welcome.html?a=b&c=etc..."); > > The problem I am facing is that the flow of event is: > > http -> https -> http > > and this causes IE and Netscape to put up an alert box telling > users that they are leaving a secured site. > > The IE messages is: > > "You are about to be redirected to a connection that is not secure. The > information you are sending to the current site might be retransmitted > to a non-secure site. Do you wish to continue?" > > I only want to use HTTPS for the parts of my web site that actually need > it and nothing else. The way I have things set up now I receive the > data through HTTPS, use it, and then put the user back on a "regular" > HTTP connection since I don't need https anymore. But I get browsers > throwing up these warnings .... > > Is there a way around this? The messages are annoying at best and > probably scary to users ... You'll have to output a message on the HTTPS page, like "Thank you, click here to continue", otherwise there's no way around the message. It's a client side issue, other browsers may or may not do it. ---John Holmes...

« previous php.general (#139493) next »