X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FREST%2F1.0%2Flogout;h=6977f9866939923a2b4c7d7c8a5e15cb34603e8c;hb=31f3763747b82764bb019cfab5b2a2945fc9a99d;hp=660c1233793fbd34216c87a8fe4a29595efbe18d;hpb=43a06151e47d2c59b833cbd8c26d97865ee850b6;p=freeside.git diff --git a/rt/share/html/REST/1.0/logout b/rt/share/html/REST/1.0/logout index 660c12337..6977f9866 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-2015 Best Practical Solutions, LLC %# %# %# (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(); +} RT/<% $RT::VERSION %> 200 Ok