EkoDLuffy

logout.php

Nov 30th, 2016
7,962
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. <?php
  2.     session_start();
  3.     include("config.php");
  4.     $sql=$dbh->prepare("DELETE FROM chatters WHERE name=?");
  5.     $sql->execute(array($_SESSION['user']));
  6.    
  7.     session_destroy();
  8.     header("Location: index.php");
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment