diff --git a/resources/static/shared/user.js b/resources/static/shared/user.js
index 2c2102cb0b57072177f66d245fb6a7b9f3698835..b7351d2f9511f41676ada3ea852e865e6fe0fcf3 100644
--- a/resources/static/shared/user.js
+++ b/resources/static/shared/user.js
@@ -626,6 +626,10 @@ BrowserID.User = (function() {
      * @param {function} [onFailure] - called on error.
      */
     logoutUser: function(onComplete, onFailure) {
+      // logout of all websites
+      storage.logoutEverywhere();
+
+      // log out of browserid
       network.logout(function() {
         setAuthenticationStatus(false);
         if (onComplete) {