Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Logout(Logout redirect)
Logout [message #1747247] Fri, 11 November 2016 09:08 Go to next message
Luka Cavic is currently offline Luka CavicFriend
Messages: 26
Registered: August 2014
Junior Member

I am using custom form for login to application. execGuiAttached is showing form. Now when I click logout, that destorys session I am redirected to /logout. Then I need to remove /logout from url and to login again.

Question is: How to disable that redirect, and display form for login again, call execGuiAttached again? Thanks
Re: Logout [message #1747377 is a reply to message #1747247] Mon, 14 November 2016 07:47 Go to previous message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 32
Registered: September 2012
Location: Baden-D├Ąttwil, Switzerla...
When you do a logout, the UI server sends a logout event to the browser. This event contains the logout URL, which is "./logout" by default. This URL is defined in the UiSession class. You can simply change this URL to "login", so the login-form will be shown when a user clicks on logout in the UI. To do this you must subclass UiSession and override the getLogoutRedirectUrl method, like this:

  public String getLogoutRedirectUrl() {
    return "login";

Use the BeanManager to register your custom UiSession (see:
Previous Topic:Issues with Hello World example for beginners
Next Topic:[NEON] Refresh Ui Component instantly
Goto Forum:

Current Time: Sun Apr 22 07:08:41 GMT 2018

Powered by FUDForum. Page generated in 0.02206 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software