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.
-------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.