LocalStorage stores user information at login and cleared at logout or expiration...
[unfold.git] / manifoldapi / static / js / manifold.js
index bbdbded..f0bbc8a 100644 (file)
@@ -699,6 +699,7 @@ var manifold = {
         if (data.code == 2) { // ERROR
             // We need to make sense of error codes here
             alert("Your session has expired, please log in again");
+            localStorage.removeItem('user');
             window.location="/logout/";
             if (manifold.asynchroneous_debug) {
                 duration=new Date()-start;