Nimbin2git.christianimmanuel.de / Tools / dienstplancreator / logout.php

dienstplancreator git · main

git clone https://git.christianimmanuel.de/tools/dienstplancreator.gitwget https://git.christianimmanuel.de/tools/dienstplancreator/archive/dienstplancreator.tar.gz
logout.php 493 B · 17 lines raw
<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Methods: POST");
header("Access-Control-Max-Age: 3600");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
  
session_start();

require './api/config/db_inc.php';
require './api/objects/account_class.php';

$account = new Account();
$account->logout();
//header('Location: ./login.php');
?>