BlueGit

projects-timfalken-com meteors

Files

meteors / server / logout.php

logout.php

logout.php 328 B Download Raw
1<?php
2declare(strict_types=1);
3require __DIR__ . '/lib/bootstrap.php';
4logoutUser();
5if (isset($_GET['json'])) {
6 // Session is destroyed; a new empty one may start on next request.
7 header('Content-Type: application/json; charset=utf-8');
8 echo json_encode(['ok' => true]);
9 exit;
10}
11header('Location: index.html');