Logout button for local user

1
Hi all, I am trying to implement a logout button for a local user. Any pointers? Would be highly appreciated
asked
3 answers
5

In Mendix 6.7, you can go to your navigation layout of choice, right click in the container where you want to have the sign out button, then: add widget -> Button -> Sign out button.

answered
0

My solution, create a simple Java action with the following code:

com.mendix.core.Core.logout(getContext().getSession()); 
com.mendix.webui.FeedbackHelper.addLogoutFeedback(getContext());

Call this java action from a microflow and connect that microflow either to a logout button or to a navigation item. You could also create a widget that renders the button and calls the following javascript action:

mx.session.logout();

Hope this helps :)

answered
-1

You can also use a custom button with a custom microflow with a java logout action for the account (in community commons module, where the account name is the openID variable for the javaaction). On this way you can include the logout into the navigation.

answered