From 88d41216f957f98bb0a22b1af779df964580fd5c Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 3 Sep 2012 06:19:19 +1000 Subject: [PATCH] SF Bug #3426575 - clicking 'logout' does not unset _SESSION['ACTIVITY'] --- htdocs/logout.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/logout.php b/htdocs/logout.php index ed74513..3c0e5eb 100644 --- a/htdocs/logout.php +++ b/htdocs/logout.php @@ -11,13 +11,16 @@ require './common.php'; -if ($app['server']->logout()) +if ($app['server']->logout()) { + unset($_SESSION['ACTIVITY'][$app['server']->getIndex()]); + system_message(array( - 'title'=>_('Authenticate to server'), + 'title'=>_('Logout from Server'), 'body'=>_('Successfully logged out of server.'), 'type'=>'info'), sprintf('index.php?server_id=%s',$app['server']->getIndex())); -else + +} else system_message(array( 'title'=>_('Failed to Logout of server'), 'body'=>_('Please report this error to the admins.'),