|
Re: Logout [message #1747377 is a reply to message #1747247] |
Mon, 14 November 2016 07:47 |
|
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:
@Override
public String getLogoutRedirectUrl() {
return "login";
}
Use the BeanManager to register your custom UiSession (see: https://eclipsescout.github.io/6.0/technical-guide.html#sec-bean.manager)
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04464 seconds