summaryrefslogtreecommitdiff
path: root/rt/share/html/REST/1.0/logout
diff options
context:
space:
mode:
Diffstat (limited to 'rt/share/html/REST/1.0/logout')
-rwxr-xr-xrt/share/html/REST/1.0/logout7
1 files changed, 5 insertions, 2 deletions
diff --git a/rt/share/html/REST/1.0/logout b/rt/share/html/REST/1.0/logout
index 660c12337..4ce4d8294 100755
--- a/rt/share/html/REST/1.0/logout
+++ b/rt/share/html/REST/1.0/logout
@@ -2,7 +2,7 @@
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -46,6 +46,9 @@
%#
%# END BPS TAGGED BLOCK }}}
<%PERL>
-tied(%session)->delete if keys %session;
+if (keys %session) {
+ RT::Interface::Web::InstantiateNewSession();
+ $session{CurrentUser} = RT::CurrentUser->new();
+}
</%PERL>
RT/<% $RT::VERSION %> 200 Ok