Advertisement
Guest User

logout

a guest
Feb 6th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. <?
  2. session_start();
  3. $_SESSION["belepve"] = false;
  4. $_SESSION["username"] = false;
  5. session_destroy();
  6.  
  7. $location = sprintf('Location:%s', $_SERVER['HTTP_REFERER']);
  8. header($location);
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement