Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2278679

Browse files
author
Sachin Maheshwari
committedOct 20, 2020
deleteing JSESSIONID cookie on logout
1 parent 5d8d4a6 commit 2278679

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎web-assets/js/setupAuth0WithRedirect.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ const authSetup = function () {
167167
setCookie('auth0Jwt', "", -1);
168168
setCookie('zendeskJwt', "", -1);
169169
setCookie('auth0Refresh', "", -1);
170+
// for scorecard
171+
setCookie('JSESSIONID', "", -1);
170172
};
171173

172174
const isLoggedIn = function () {
@@ -362,7 +364,7 @@ const authSetup = function () {
362364
}
363365

364366
function changeWindowMessage() {
365-
if (!returnAppUrl || returnAppUrl == 'undefined') {
367+
if ((!returnAppUrl && !appUrl) || ((returnAppUrl == 'undefined') && (appUrl == 'undefined'))) {
366368
try {
367369
document.getElementById("page-title-heading").innerHTML = "Alert";
368370
document.getElementById("loading_message_p").innerHTML = "Login/Logout action is not called. Please check return url (retUrl) value in query parameters."

0 commit comments

Comments
 (0)
Please sign in to comment.