SKKPd_Lite/logout.php

11 lines
366 B
PHP
Executable File

<?php
setcookie('username', '', time(), '/');
setcookie('level_user', '', time(), '/');
setcookie('nama_lengkap', '', time(), '/');
setcookie('nis', '', time(), '/');
setcookie('angkatan', '', time(), '/');
setcookie('status', '', time(), '/');
session_start();
session_destroy();
echo "<script>alert('Berhasil Logout');window.location.href='login.php'</script>";
?>