Added passing $sessionid and $kp3 parameters to session->destroy()

This commit is contained in:
jengo 2001-09-28 21:40:45 +00:00
parent bba0ba2eb7
commit 3a65ab5a7f

View File

@ -42,15 +42,19 @@
rmdir($GLOBALS['phpgw_info']['server']['temp_dir'] . SEP . $GLOBALS['sessionid']);
}
$GLOBALS['phpgw']->common->hook('logout');
$GLOBALS['phpgw']->session->destroy();
$GLOBALS['phpgw']->session->destroy($GLOBALS['sessionid'],$GLOBALS['kp3']);
}
else
{
$GLOBALS['phpgw']->log->write(array('text'=>'W-VerifySession, could not verify session during logout'));
$GLOBALS['phpgw']->log->write(array(
'text' => 'W-VerifySession, could not verify session during logout',
'line' => __LINE__,
'file' => __FILE__
));
}
Setcookie('sessionid');
Setcookie('kp3');
Setcookie('domain');
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw_info']['server']['webserver_url'].'/login.php?cd=1');
?>
?>