From 253af42ceb1387e956a1dc3dd62ba33064174add Mon Sep 17 00:00:00 2001 From: Elisha Oren Date: Mon, 26 Dec 2016 12:45:24 +0200 Subject: [PATCH] clear all sessionStorage on Logout Change-Id: I270ac587dfd2541500993ffb73d6774350eaa345 Signed-off-by: Elisha Oren --- .../src/main/resources/authentification/auth.services.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/common-authentication-resources/src/main/resources/authentification/auth.services.js b/modules/common-authentication-resources/src/main/resources/authentification/auth.services.js index 891e2b60..3a100a99 100644 --- a/modules/common-authentication-resources/src/main/resources/authentification/auth.services.js +++ b/modules/common-authentication-resources/src/main/resources/authentification/auth.services.js @@ -21,9 +21,8 @@ define([], function () { if ($http.defaults.headers.common.Authorization !== null) { delete $http.defaults.headers.common.Authorization; } - delete $window.sessionStorage.odlUser; - delete $window.sessionStorage.odlPass; - document.cookie = 'JSESSIONID=; Path=/restconf; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; + $window.sessionStorage.clear(); + document.cookie = 'JSESSIONID=; Path=/restconf; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; }; // Return the current user object -- 2.36.6