Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(isset($_SESSION['email'])) {
- session_destroy();
- ?>
- <meta http-equiv="refresh" content="2; url=./login.php"/>
- <center><h2>Berhasil Logout</h2>kamu akan dialihkan kembali ke halaman login dalam 2 detik</center>
- <?php
- } else {
- ?>
- <meta http-equiv="refresh" content="2; url=./login.php"/>
- <center><h2>Gagal Logout</h2>Silahkan login terlebih dahulu<br/><br/>kamu akan dialihkan kembali ke halaman login dalam 2 detik</center>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement