Blame view

social/logout.php 233 Bytes
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
  <?php
  
  if (array_key_exists("logout", $_GET)) {
      session_start();
      unset($_SESSION['id']);
      unset($_SESSION['username']);
      unset($_SESSION['oauth_provider']);
      session_destroy();
      header("location: home.php");
  }
  ?>