]> git.uio.no Git - usit-rt.git/blobdiff - share/html/REST/1.0/logout
Upgrade to 4.0.13
[usit-rt.git] / share / html / REST / 1.0 / logout
index 1ef43190295f501c9c3daaf312d0cfb40d8afd0f..4ce4d8294e515de230bb492c677245e78af3f573 100644 (file)
@@ -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