Commit 266aa2d9 authored by Joram Wilander's avatar Joram Wilander Committed by JoramWilander

Delete cookie properly on logout (#2146)

parent 2df9b112
......@@ -388,7 +388,7 @@ export function emitUserLoggedOutEvent(redirectTo = '/', shouldSignalLogout = tr
BrowserStore.clear();
stopPeriodicStatusUpdates();
WebsocketActions.close();
document.cookie = 'MMUSERID=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
document.cookie = 'MMUSERID=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/';
browserHistory.push(redirectTo);
}).catch(() => {
browserHistory.push(redirectTo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment