關於課程
<p>確定要登出系統嗎?</p>
<a href=”logoutoutput.php”>登出</a>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
<?php
session_start();
if (isset($_SESSION[‘customer’])) {
unset($_SESSION[‘customer’]);
echo ‘登出成功。’;
} else {
echo ‘您原本就已登出。’;
}
?>