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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppressing a "Security Information" message??

Status
Not open for further replies.

tijerina

Vendor
Mar 4, 2003
132
US
The following code snipit is what I am using to secure my website, this snipit of code is located at the top of my index.php file.

-------start of snipit-------------------------------

<?php
if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS']!="on")
{
$header = "Location: [SERVER_NAME].$_SERVER[REQUEST_URI];
header($header);
exit;
}
$user_login = "";
if(isset($_REQUEST['user_login'])){
$user_login = $_REQUEST['user_login'];
if (isset($_REQUEST['username'])){
session_start();
$HTTP_SESSION_VARS['valid_user'] = $_REQUEST['username'];
$username = $HTTP_SESSION_VARS['valid_user'];
}
}

----------End of Snipit-----------------------------

My SSL works good and I do see the padlock on my browser, but my broswer now kicks back an annoying messgae when I first enter the site, the message is this:

"Security Information -- This page contains both secure and nonsecure items. Do you want to display the nonsecure items?" There is a YES - NO - MORE INFO options to click on for this message.

Anybody know how to suppress this message? Is there a return code I could use in the code above?

Thanks.
 
This is an IE thing. There is nothing you can do from the server side other than make sure you're sending all components on a page (all images, etc) via SSL.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
sleipnir214:

Thanks for your time on this matter. I was thinking that this was an IE thing, but wasn't sure.

Again, thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top