How do I end a user’s session from a microflow/Java action without redirecting them to the login page of the application? Basically I want, upon sending of a ‘change email’ confirmation link, for instance, to end the user’s session and present them a message notifying them about the link in the email. Then, when they click on the link in the email, their previous seasion is gone so the deeplink executes correctly.
The ‘logout’ method of com.mendix.core.Core seems to automatically redirect to the login page of the application, so the notification message is only displayed for a fraction of a second.
Any help with this would be much appreciated. Thanks!