2013-05-07 14:20:08 -04:00
|
|
|
<?
|
|
|
|
require('include/misc.php');
|
|
|
|
|
|
|
|
session_start();
|
|
|
|
|
|
|
|
$sceneid = new SceneID();
|
|
|
|
|
|
|
|
$params = array ("userID" => $_SESSION["SESSION_ID"]);
|
|
|
|
$command = "logoutUser";
|
|
|
|
|
|
|
|
// NOTE ! WE'RE NOT ACTUALLY CALLING SCENEID NOW. USER DOESN'T REALLY LOGOUT!
|
|
|
|
|
|
|
|
session_unset();
|
|
|
|
session_destroy();
|
|
|
|
|
2013-05-08 23:12:00 -04:00
|
|
|
if($_COOKIE["SCENEID_COOKIE"])
|
2013-05-07 14:20:08 -04:00
|
|
|
{
|
|
|
|
// setcookie("SCENEID_COOKIE","", time() - 3600, "/", "scene.org");
|
|
|
|
setcookie("SCENEID_COOKIE","", time() - 3600, "/", "pouet.net");
|
|
|
|
unset($_COOKIE["SCENEID_COOKIE"]);
|
|
|
|
}
|
2013-05-08 23:12:00 -04:00
|
|
|
if($_COOKIE["SCENEID_SESSION"])
|
2013-05-07 14:20:08 -04:00
|
|
|
{
|
|
|
|
// setcookie("SCENEID_SESSION","", time() - 3600, "/", "scene.org");
|
|
|
|
setcookie("SCENEID_SESSION","", time() - 3600, "/", "pouet.net");
|
|
|
|
unset($_COOKIE["SCENEID_SESSION"]);
|
|
|
|
}
|
|
|
|
|
|
|
|
$sceneid->parseSceneIdData($command, $params);
|
|
|
|
|
2013-05-12 15:14:10 -04:00
|
|
|
header("Location: ".$_SERVER[HTTP_REFERER]);
|
2013-05-07 14:20:08 -04:00
|
|
|
?>
|