Commit bf932359 authored by Nico Schallehn's avatar Nico Schallehn

test

parent e398ff12
......@@ -3,8 +3,10 @@ include('../api.class.php');
if(isset($_GET["logoff"])){
echo "abmelden!!";
unset($_SESSION);
setcookie ("api-key", "", time() - 3600);
setcookie ("api-secret", "", time() - 3600);
$_SESSION = array();
setcookie ("api-key", "", time() - 3600,'/');
setcookie ("api-secret", "", time() - 3600,'/');
setcookie(session_name(), '', time()-3600,'/');
session_destroy();
exit;
//header('location: /');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment