ordersprinter/webapp/logout.php

9 lines
226 B
PHP
Raw Normal View History

2020-11-19 22:44:19 +01:00
<?php
session_start();
session_destroy();
$hostname = $_SERVER['HTTP_HOST'];
$path = dirname($_SERVER['PHP_SELF']);
header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/index.html');
?>