Guest User

Untitled

a guest
Apr 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php // Script 13.6 - logout.php
  2. /* This is the logout page. It destroys the cookie. */
  3.  
  4. // Destroy the cookie, but only if it already exists:
  5. if (isset($_COOKIE['Samuel'])) {
  6. setcookie('Samuel', FALSE, time()-300);
  7. }
  8.  
  9. // Define a page title and include the header:
  10. define('TITLE', 'Logout');
  11. include('templates/header.html');
  12.  
  13. // Print a message:
  14. echo '<p>You are now logged out.</p>';
  15.  
  16. // Include the footer:
  17. include('templates/footer.html');
  18. ?>
Add Comment
Please, Sign In to add comment