logout fix

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@447 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-04-04 21:14:35 +00:00
parent ca552966d1
commit 669a77ffee

View File

@ -187,8 +187,8 @@ function login_operator($operator,$remember) {
function logout_operator() {
global $webimroot;
$_SESSION['operator'] = NULL;
$_SESSION['backpath'] = NULL;
unset($_SESSION['operator']);
unset($_SESSION['backpath']);
if( isset($_COOKIE['webim_lite']) ) {
setcookie('webim_lite', '', time() - 3600, "$webimroot/");
}