X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FREST%2F1.0%2Flogout;h=a62e684eb5fc98e10bf484398d7dbe0085d639a3;hp=2e59b1dca1a34d2bc70c14416c9419293e186c20;hb=de9d037528895f7151a9aead6724ce2df95f9586;hpb=24548f7cf666bac02335d0bc74f81251c7b4ab50 diff --git a/rt/share/html/REST/1.0/logout b/rt/share/html/REST/1.0/logout index 2e59b1dca..a62e684eb 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-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 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