X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FREST%2F1.0%2Flogout;h=4ce4d8294e515de230bb492c677245e78af3f573;hb=679854b8bbc65d112071111bbd7f34a6a481fb30;hp=660c1233793fbd34216c87a8fe4a29595efbe18d;hpb=9b328d940af56b9924a342192ebb0790478fa705;p=freeside.git 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 %# %# %# (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