[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/03: remove warning about "headers already
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/03: remove warning about "headers already sent" |
Date: |
Fri, 09 Oct 2015 10:18:25 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit b0ef7e10b4812d8bb4c27ed42645a984bb79ea4f
Author: Dany De Bontridder <address@hidden>
Date: Thu Oct 8 13:58:57 2015 +0200
remove warning about "headers already sent"
---
html/logout.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/html/logout.php b/html/logout.php
index 0b65167..45637d6 100644
--- a/html/logout.php
+++ b/html/logout.php
@@ -23,10 +23,10 @@
require_once '../include/constant.php';
require_once ("lib/ac_common.php");
require_once('lib/class_database.php');
+session_unset();
html_page_start("classic");
-session_unset();
/* clean Global variable */
if ( isset ($g_user) ) unset ($GLOBAL['g_user']);
@@ -39,8 +39,8 @@ if (isset($_SERVER['HTTP_COOKIE'])) {
foreach($cookies as $cookie) {
$parts = explode('=', $cookie);
$name = trim($parts[0]);
- setcookie($name, '', time()-1000);
- setcookie($name, '', time()-1000, '/');
+ @setcookie($name, '', time()-1000);
+ @setcookie($name, '', time()-1000, '/');
}
}
echo '<h2 class="info">'._('Vous êtes déconnecté').'</h2>';