Error ".$resultCode." : '".$resultString."' will trying to cancel the session ".$_POST["sessionId"]."";
echo '
Back to menu';
}
else
{
// ok, the session is closed (or almost to close)
echo "
Session ".$_POST["sessionId"]." has been cancelled
";
}
}
}
$domainId = -1;
if (!validateCookie($userId, $domainId, $charId))
{
echo "Invalid cookie !";
die();
}
else
{
$domainInfo = getDomainInfo($domainId);
$addr = split(":", $domainInfo["session_manager_address"]);
$RSMHost = $addr[0];
$RSMPort = $addr[1];
// ask to start the session
$cancelSessionCb = new CancelSessionCb;
$res = "";
$cancelSessionCb->connect($RSMHost, $RSMPort, $res);
$cancelSessionCb->cancelSession($charId, $_POST["sessionId"]);
// wait the the return message
$cancelSessionCb->waitCallback();
}
?>
Return to main