2 require_once('../tools/validate_cookie.php');
3 include_once('../login/config.php');
4 include_once('../tools/domain_info.php');
5 include_once('ring_session_manager_itf.php');
8 class CancelSessionCb
extends CRingSessionManagerWeb
10 function invokeResult($userId, $resultCode, $resultString)
12 global $step, $rsmProxy, $rsmSkel, $userId, $callbackClient;
16 echo "<h1>Error ".$resultCode." : '".$resultString."' will trying to cancel the session ".$_POST["sessionId"]."</h1>";
17 echo '<p><p><a href="web_start.php">Back to menu</a>';
21 // ok, the session is closed (or almost to close)
22 echo "<h1>Session ".$_POST["sessionId"]." has been cancelled</h1>";
28 if (!validateCookie($userId, $domainId, $charId))
30 echo "Invalid cookie !";
35 $domainInfo = getDomainInfo($domainId);
36 $addr = split(":", $domainInfo["session_manager_address"]);
40 // ask to start the session
41 $cancelSessionCb = new CancelSessionCb
;
43 $cancelSessionCb->connect($RSMHost, $RSMPort, $res);
44 $cancelSessionCb->cancelSession($charId, $_POST["sessionId"]);
46 // wait the the return message
47 $cancelSessionCb->waitCallback();
50 <p
><a href
="web_start.php">Return to main
</a
> </p
>