remove warning about "headers already sent"
This commit is contained in:
parent
cff1c315af
commit
b0ef7e10b4
1 changed files with 3 additions and 3 deletions
|
|
@ -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>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue