SF Bug #3426575 - clicking 'logout' does not unset _SESSION['ACTIVITY']
This commit is contained in:
parent
09c5e3a8da
commit
88d41216f9
@ -11,13 +11,16 @@
|
|||||||
|
|
||||||
require './common.php';
|
require './common.php';
|
||||||
|
|
||||||
if ($app['server']->logout())
|
if ($app['server']->logout()) {
|
||||||
|
unset($_SESSION['ACTIVITY'][$app['server']->getIndex()]);
|
||||||
|
|
||||||
system_message(array(
|
system_message(array(
|
||||||
'title'=>_('Authenticate to server'),
|
'title'=>_('Logout from Server'),
|
||||||
'body'=>_('Successfully logged out of server.'),
|
'body'=>_('Successfully logged out of server.'),
|
||||||
'type'=>'info'),
|
'type'=>'info'),
|
||||||
sprintf('index.php?server_id=%s',$app['server']->getIndex()));
|
sprintf('index.php?server_id=%s',$app['server']->getIndex()));
|
||||||
else
|
|
||||||
|
} else
|
||||||
system_message(array(
|
system_message(array(
|
||||||
'title'=>_('Failed to Logout of server'),
|
'title'=>_('Failed to Logout of server'),
|
||||||
'body'=>_('Please report this error to the admins.'),
|
'body'=>_('Please report this error to the admins.'),
|
||||||
|
Loading…
Reference in New Issue
Block a user