-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlogout.php
More file actions
36 lines (35 loc) · 797 Bytes
/
logout.php
File metadata and controls
36 lines (35 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
//============================================================+
// File name : logout.php
//
// Description : User Logout
//
// Author: Aditya Mathur
//
// (c) Copyright:
// Aditya Mathur
// eztasker.com
//
// License:
// Copyright (C) 2014 Aditya Mathur - eztasker.com
//============================================================+
session_start();
require_once("./includes/configure.php");
if(isset($_SESSION['li_uname111'])){
session_destroy();
header('location:./admin');
}
elseif(isset($_SESSION['li_uname222'])){
$facebook->destroySession();
session_destroy();
header('location:login.php');
}
elseif(isset($_SESSION['li_uname333'])){
$facebook->destroySession();
session_destroy();
header('location:login.php');
}
else{
header('location:./');
}
?>