summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/LogoutPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/wicket/LogoutPage.java')
-rw-r--r--src/com/gitblit/wicket/LogoutPage.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/gitblit/wicket/LogoutPage.java b/src/com/gitblit/wicket/LogoutPage.java
new file mode 100644
index 00000000..278fbec5
--- /dev/null
+++ b/src/com/gitblit/wicket/LogoutPage.java
@@ -0,0 +1,12 @@
+package com.gitblit.wicket;
+
+import org.apache.wicket.markup.html.WebPage;
+
+public class LogoutPage extends WebPage {
+
+ public LogoutPage() {
+ getSession().invalidate();
+ setRedirect(true);
+ setResponsePage(getApplication().getHomePage());
+ }
+} \ No newline at end of file