From: Elisha Oren Date: Mon, 26 Dec 2016 10:45:24 +0000 (+0200) Subject: clear all sessionStorage on Logout X-Git-Tag: release/carbon~6 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=253af42ceb1387e956a1dc3dd62ba33064174add;p=dlux.git clear all sessionStorage on Logout Change-Id: I270ac587dfd2541500993ffb73d6774350eaa345 Signed-off-by: Elisha Oren --- 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