Update logout.php
This commit is contained in:
parent
0467e08470
commit
5abd3f713c
12
logout.php
12
logout.php
@ -1,6 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
$_SESSION['authenticated'] = false;
|
$_SESSION['authenticated'] = false;
|
||||||
|
ob_end_clean();
|
||||||
|
ob_start();
|
||||||
|
if (isset($_COOKIE['exchange'])) {
|
||||||
|
unset($_COOKIE['exchange[flo_id]']);
|
||||||
|
setcookie('exchange[flo_id]', null, -1);
|
||||||
|
unset($_COOKIE['exchange[session_id]']);
|
||||||
|
setcookie('exchange[session_id]', null, -1);
|
||||||
|
unset($_COOKIE['exchange[flo_pub_key]']);
|
||||||
|
setcookie('exchange[flo_pub_key]', null, -1);
|
||||||
|
unset($_COOKIE['exchange']);
|
||||||
|
setcookie('exchange', null, -1);
|
||||||
|
}
|
||||||
session_destroy();
|
session_destroy();
|
||||||
header("Location: index.php"); // you can enter home page here ( Eg : header("Location: " ."http://www.krizna.com");
|
header("Location: index.php"); // you can enter home page here ( Eg : header("Location: " ."http://www.krizna.com");
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user