会话php5.5 mysqli不存储信息

I have made a website http://www.mandyevansartist.com at uni and have had it working on ipage - since moving to 1and1 it does not work. The session information works for the first page (half way down

$_SESSION['name']=$name; 
$_SESSION['thispic']=$thispic;

are created and work for the pop up modals - but the information is lost on the next page

    <?php
session_start();
include 'header.php';
$id = isset($_GET['id']) ? $_GET['id'] : "";
$con =   mysqli_connect("*","*","*","*");
$db = mysqli_select_db("images", $con);

function GetCartId()
{

    if(isset($_COOKIE["cartId"]))
    {
        return $_COOKIE["cartId"];
    }
    else
    {
        setcookie("cartId", session_id(), time() + ((3600 * 24) * 30));
        return session_id();
    }
}
$id = $_GET["id"];
$strSQL = "SELECT * FROM images WHERE image= '$id'";
$rs = mysqli_query($con,$strSQL);

while($row = mysqli_fetch_array($rs)) {

    $name =   $row['image_name'];
    echo '<h1 style="font-size:2em;">';
    echo $name;
    echo'</h1>';
    echo '<div id = "galpic">';
    $thispic = $row['image'];
    echo '<div id = "pic">';        
    echo '<br /> <img src="'.$thispic.'" style = "max-width:100%;"/> ';
    echo '</div>';      
    $description =   $row['image_description'];
    echo ' <a href="#" class="big-link" data-reveal-id="about" data-animation="fade"><h3>about</h3></a>';
    echo ' <a href="#" class="big-link" data-reveal-id="card" data-animation="fade"><h3>card</h3></a>';
    echo '</div>';      
}
$_SESSION['name']=$name; 
$_SESSION['thispic']=$thispic;
echo '<div id="about" class="reveal-modal">';
echo '<br /> <img src="'.$thispic.'" /> ';
echo '<h1>';
echo $description;
echo '</h1>';
echo '</div>';
echo '<div id="card" class="reveal-modal">';
echo '<br /> <img src="'.$thispic.'" /> ';
echo '<img src="images/cards.png" /> ';
echo '<h1>a card of -'.$name.'</h1>';
echo '<p>click this button and we will hand make you this card. Using   spray glue on recycled card and a crystal archive photograph. Individually   wrapped with a c5 envelope. </p>';
echo '<h1>$7 each</h1><br />';

echo '<form action = "cart.php" method = "post">';
echo '<input type="image" src = "images/sendtocart.png" >';
echo '</form>';
echo '<p> you can remove it from the cart later if you like</p>';
echo '</div>';

$catagory = mysqli_query($con,"SELECT catagory FROM images WHERE image=   '$id'");
echo '<p>';
while   ($row = mysqli_fetch_array($catagory))  {
    $yay= $row[catagory];
}
$answer   = mysqli_query($con,"SELECT image FROM images where catagory =   '$yay'");
echo '<div id = "list">';
echo '<hr></hr>';
echo '<p>other pictures in this catagory</p>';
echo '<ul>';        
while   ($row   =   mysqli_fetch_array($answer))    {
    $pic = $row['image'];       
    $link ="<a href = 'image.php?id=".$row['image']."'>". ' <img   src="'.$pic.'" style ="height:45px;"/> '. "</a>";  
    echo '<li>' .$link.'</li>';     
}
echo '</ul>';
echo '</div>';

$answer = mysqli_query($con,"SELECT image FROM images where HEAD =   'true'");
echo '<div id = "list">';
echo '<hr></hr>';
echo '<p>choose another catagory</p>';
echo '<ul>';        
while   ($row=mysqli_fetch_array($answer))  {
    $pic = $row[image];     
    $link ="<a href = 'catagory.php?id=".$row[image]."'>".' <img     src="'.$pic.'" style ="height:60px;"/>'."</a>";   
    echo '<li>'.$link.'</li>';    
}
echo '</ul>';
echo '</div>';
include 'footer.php';
?>
<a class="close-reveal-modal"></a>

by the time it reaches the next page the session information is gone

     <?php
session_start();
$_SESSION['name']=$name;
$_SESSION['thispic']=$thispic;
$con = mysqli_connect("*","*","*","*");
function GetCartId()
{
    if(isset($_COOKIE["cartId"]))
    {
        return $_COOKIE["cartId"];
    }
    else
    {
        setcookie("cartId", session_id(), time() + ((3600 * 24) * 30));
        return session_id();
    }
}
mysqli_query($con,"insert into cart(product,name,image,price,cookieId)  values('card','$name','$thispic',7,'".GetCartId()."')");
header("Location:image.php?id=$thispic");
?>

problem solved - it was the 1and1 host did not have 'superglobals' turned on - so I added this code to the top of my relevent pages (just under session_start().....

// Emulate register_globals on
 if (!ini_get('register_globals')) { 
     $superglobals = array($_SERVER, $_ENV,
     $_FILES, $_COOKIE, $_POST, $_GET);
 if (isset($_SESSION)) { 
     array_unshift($superglobals, $_SESSION); 
} 
foreach ($superglobals as $superglobal) { 
    extract($superglobal, EXTR_SKIP); 
 }
  }