Sign in/Sign out Navigation Button

I am new to Mendix and was wondering if there is a way to have one button on the navigation menu that would change from "sign in" to "sign out" and vice versa?
1 answers

Hi Michael,

You can do this by controlling the permissions for the pages that you are displaying.

For a sign in button, you can show a page with a navigation bar that has a sign in button, and set that page to only be shown to anonymous users. For a sign out button, you can do the same but set the permissions to only allow users (this would be all other module roles a user has) to navigate too.