안효원 안효원 2022-01-13
real last commit
@0a3fb2cb173517b6065346df73f8fddc7ba67e3d
 
20220113/logout.php (added)
+++ 20220113/logout.php
@@ -0,0 +1,7 @@
+<?php
+    session_start();
+
+    unset($_SESSION['login']);
+
+    echo "<script>alert('Logout!!')</script>";
+    echo "<script>document.location.href='login.php'</script>";(No newline at end of file)
20220113/success.php
--- 20220113/success.php
+++ 20220113/success.php
@@ -14,7 +14,7 @@
 </head>
 <body>
 <h1><em><?php echo $_GET['id'] ?></em>, Login Success!!!</h1>
-<button onclick="document.location.href='login.php'">돌아가기</button>
+<button onclick="document.location.href='logout.php'">Logout</button>
 </body>
 </html>
 <?php
Add a comment
List