Added logoff option to username menu
[pithos] / web_client / src / gr / grnet / pithos / web / client / Pithos.java
index 5e2e59f..24a39b6 100644 (file)
@@ -1112,4 +1112,10 @@ public class Pithos implements EntryPoint, ResizeHandler {
                        }
                });
        }
+
+       public void logoff() {
+        Configuration conf = (Configuration) GWT.create(Configuration.class);
+               Cookies.removeCookie(conf.authCookie());
+               Window.Location.assign(Window.Location.getHost());
+       }
 }