From d17bc6115ffec04ecabc7e217e29cec6f533a6af Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 12 Jul 2023 07:17:20 +0200 Subject: [PATCH] refs #5863 logout remove $_SESSION['user'] --- js/vn/json-connection.js | 1 + rest/user/logout.php | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 rest/user/logout.php diff --git a/js/vn/json-connection.js b/js/vn/json-connection.js index 6a088aaa..e06a0c4e 100644 --- a/js/vn/json-connection.js +++ b/js/vn/json-connection.js @@ -86,6 +86,7 @@ module.exports = new Class({ headers: {'Authorization': token} }; await this.post('Accounts/logout', null, config); + await this.send('user/logout'); } }, diff --git a/rest/user/logout.php b/rest/user/logout.php new file mode 100644 index 00000000..a7e7e849 --- /dev/null +++ b/rest/user/logout.php @@ -0,0 +1,7 @@ +