pouet.net/logout.php

33 lines
783 B
PHP
Raw Normal View History

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();
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"]);
}
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);
header("Location: ".$HTTP_REFERER);
?>