I have searched google and stackoverflow for possible solutions and I believe I have tried everything and for some reason I am getting errors. I have not changed anything when previously was working :-s Please find the top block of PHP on my index page above.
Or visit my site to view it yourself - www.budgie.richardcmpage.com
<?php
ini_set('session.cookie_httponly', '' );
echo ini_get('session.cookie_httponly');
session_start();
if (isset($_SESSION['last_ip']) === false) {
$_SESSION['last_ip'] = $_SERVER['REMOTE_ADDR'];
}
if ($_SESSION['last_ip'] !== $_SERVER['REMOTE_ADDR']) {
session_unset();
session_destroy();
}
include 'functions/functions.php';
?>
I think your problem is whitespace at first line:
<?php
and echo at third:
echo ini_get('session.cookie_httponly');
which triggers the output and sends headers