Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // Script 13.6 - logout.php
- /* This is the logout page. It destroys the cookie. */
- // Destroy the cookie, but only if it already exists:
- if (isset($_COOKIE['Samuel'])) {
- setcookie('Samuel', FALSE, time()-300);
- }
- // Define a page title and include the header:
- define('TITLE', 'Logout');
- include('templates/header.html');
- // Print a message:
- echo '<p>You are now logged out.</p>';
- // Include the footer:
- include('templates/footer.html');
- ?>
Add Comment
Please, Sign In to add comment