Hi guys need help on this "cannot send session cache limiter"
on this php file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Shaiya Nightmare: UCP</title>
<LINK REL=StyleSheet HREF="img/style.css" TYPE="text/css" MEDIA=screen>
<LINK REL=StyleSheet HREF="img/jquery.css" TYPE="text/css" MEDIA=screen>
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript">
$(function(){
$('#tabs').tabs();
$('#tab_link').each(function(){
$('#tabs').hide();
});
$('#tabs2').tabs();
$('#tab_link').each(function(){
$('#tabs2').hide();
});
});
</script>
</head>
<body>
<?php
error_reporting(E_ALL);
//Setting informaton
include('info.php');
session_start();
if (!isset($_SESSION['session_id'])){header("location:index.php");}
checkSession($_SESSION['session_id'],$_SESSION['UserID']);
//Setting Arrays
$Status=array(0 => 'Alive',1 =>'Dead');
$Faction=array(0 => 'Alliance',1 => 'Fury',2 => 'Faction Select');
$Light=array(0 => 'Fighter',1=>'Defender',2=>'Ranger',3=>'Archer',4= >'Mage',5=>'Priest');
$Fury=array(0 => 'Warrior',1=>'Guardian',2=>'Assasin',3=>'Hunter',4 =>'Pagan',5=>'Oracle');
//Queries for Information Tabs
$User="SELECT * FROM PS_UserData.dbo.Users_Master U
INNER JOIN PS_GameData.dbo.UserMaxGrow UM ON UM.UserUID=U.UserUID
WHERE UserID='".$_SESSION['UserID']."'";
$res = odbc_exec($conn,$User);
$Info = odbc_fetch_array($res);
//Information Tabs
echo "<div id=\"tabs2\">";
echo "<ul>";
echo "<li><a href=\"#Wel\">Welcome</a></li>";
echo "<li><a href=\"#Acc\">Account</a></li>";
echo "<li><a href=\"#ChPw\">Change password</a></li>";
echo "<li><a href=\"#ChEm\">Change email</a></li>";
echo "<li><a href=\"#Log\">Logout</a></li>";
echo "</ul>";
//Welcome Message
echo "<div id=\"Wel\">";
echo "<b>Welcome, ".$_SESSION["UserID"]."</b><br>";
if (isset($_SESSION["msg"])) echo "<b>".$_SESSION["msg"]."</b><br>";
echo "</div>";
//Account info
echo "<div id=\"Acc\">";
echo "<b>";
echo "Points: ".$Info['Point']."<br>";
echo "Account IP: ".$Info['UserIp']."<br>";
echo "Current IP: ".$_SERVER['REMOTE_ADDR']."<br>";
echo "Current faction: ".$Faction[$Info['Country']]."<br>";
echo "</b>";
echo "</div>";
//Logout
echo "<div id=\"Log\">";
echo "<center><a href=\"logout.php\"><strong>Logout</strong></a></center>";
echo "</div>";
//Pass Change
echo "<div id=\"ChPw\">";
echo "<form action=\"pchange.php\" method=\"post\">";
echo "Old Password: <input type=\"password\" name=\"oldpw\" /><br>";
echo "New Password: <input type=\"password\" name=\"newpw\" /><br>";
echo "<input type=\"submit\" />";
echo "</form>";
echo "</div>";
//Email Change
echo "<div id=\"ChEm\">";
echo "<form action=\"emailch.php\" method=\"POST\">";
echo "Old E-mail address: <input type=\"text\" value=\"".$Info['Email']."\"style=\"background:#e2e2e2;\" READONLY /><br>";
echo "New E-mail address: <input type=\"email\" name=\"Email\" /><br>";
echo "<input type=\"Submit\">";
echo "</form>";
echo "</div>";
echo "</div>";
//Queries
$query = "SELECT umg.Country, c.Family, c.CharName, c.CharID, c.Job, c.Level,c.Slot,c.Del,UM.Email
FROM [PS_GameData].[dbo].[UserMaxGrow] AS umg
INNER JOIN [PS_GameData].[dbo].[Chars] AS c ON umg.UserUID = c.UserUID
INNER JOIN PS_UserData.dbo.Users_Master UM ON UM.UserUID = C.UserUID
WHERE c.UserID='".$_SESSION['UserID']."'";
$res = odbc_exec($conn,$query);
//Tabs
echo "<div id=\"tabs\">";
echo "<ul>";
if(odbc_num_rows($res)==0){echo "<li><a href=\"#Error\">Error!</a></li>";}else{
while ($Tabs=odbc_fetch_array($res)){echo "<li><a href=\"#".$Tabs['CharID']."\">".$Tabs['CharName']."</a></li>";}
}
echo "</ul>";
//Characters
$res = odbc_exec($conn,$query);
while ($row = odbc_fetch_array($res)){
echo "<div id=\"".$row['CharID']."\">";
echo "<b>";
echo "Slot: ";echo $row['Slot']+1 ."<br>";
echo "Character Name: ".$row['CharName']."<br>";
echo "Level: ".$row['Level']."<br>";
if($row['Family'] == 0 || $row['Family'] == 1){echo "Class: ".$Light[$row['Job']]."<br></form>";}
if($row['Family'] == 2 || $row['Family'] == 3){echo "Class: ".$Fury[$row['Job']]."<br></form>";}
echo "Status: ".$Status[$row['Del']]."<br>";
echo "</b>";
if($row['Del']==1){
if(($row['Country'] == 0) && ($row['Family'] == 0) || ($row['Country'] == 0) && ($row['Family'] == 1)){
echo "<form action=\"cres.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"CharID\" value=\"".$row['CharID']."\">";
echo "<input type=\"Submit\" value=\"Resurrect\">";
echo "</form>";
}
if($row['Country'] == 1 && $row['Family'] == 2 || $row['Country'] == 1 && $row['Family'] == 3){
echo "<form action=\"cres.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"CharID\" value=\"".$row['CharID']."\">";
echo "<input type=\"Submit\" value=\"Resurrect\">";
echo "</form>";
}
}
echo "<form action=\"posres.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"Char\" value=\"".$row['CharID']."\">";
echo "<input type=\"Submit\" value=\"Reset Position\">";
echo "</form>";
echo "</div>";
}
//Error catch
$res = odbc_exec($conn,$query);
if(odbc_num_rows($res)==0){
echo "<div id=\"Error\">";
echo "No characters on this account!";
echo "</div>";
}
//End Tab Div
echo "</div>";
unsetSession('msg');
?>
</body>
</html>






