khanat-code-old/code/ryzom/tools/server/www/ring/start_session.php

27 lines
611 B
PHP
Raw Normal View History

2010-05-06 00:08:41 +00:00
<?php
require_once('../tools/validate_cookie.php');
include_once('../login/config.php');
include_once('../tools/domain_info.php');
include_once('ring_session_manager_itf.php');
include_once('session_tools.php');
$step = 0;
$domainId = -1;
if (!validateCookie($userId, $domainId, $charId))
{
echo "Invalid cookie !";
die();
}
else
{
echo "Welcome user $userId<BR>";
startSession($charId, $domainId, $_POST["sessionId"]);
// inviteOwnerInSession($charId, $domainId, $_POST["sessionId"]);
die();
}
?>
<p><a href="web_start.php">Return to main</a> </p>