+++ 20220113/logout.php
... | ... | @@ -0,0 +1,7 @@ |
1 | +<?php | |
2 | + session_start(); | |
3 | + | |
4 | + unset($_SESSION['login']); | |
5 | + | |
6 | + echo "<script>alert('Logout!!')</script>"; | |
7 | + echo "<script>document.location.href='login.php'</script>";(No newline at end of file) |
--- 20220113/success.php
+++ 20220113/success.php
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 |
</head> |
15 | 15 |
<body> |
16 | 16 |
<h1><em><?php echo $_GET['id'] ?></em>, Login Success!!!</h1> |
17 |
-<button onclick="document.location.href='login.php'">돌아가기</button> |
|
17 |
+<button onclick="document.location.href='logout.php'">Logout</button> |
|
18 | 18 |
</body> |
19 | 19 |
</html> |
20 | 20 |
<?php |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?