Hi, I have created a custom login page using Anonymous users. But I am using the Sign In function of nanoflow. For this, I have created an entity (Username, password). My question is that, how can I maintain session on login or SignIn function of Nanoflow internally maintain the session? Is it right practice to use nanoflow on Login page
When a user sign In, Mendix creates a session for the logged in user. So you need not worry about creating a session.
If you need to extend the sign in Nanoflow with other activities, then go with your custom implementation. Otherwise, It is good to use Mendix Authentication widgets for SignIn.
Pls Accept the Answer if your doubt is cleared :)
Gouse Saheb Mohammad
You can fix that by making the new entity as generalization from the System.User entity. It has already Association with session and name , password, …. attributes,
Instead of a Nanoflow for the Sign in you can use a Microflow, Add your customlogic and create a JavaAction for Signin and integrate it.
Hi Harshraj, If you do like this you don’t need to create a session at all , It will be created automatically by Mendix.
Extending Rachana BP’s Answer:
Refer to Mendix API Docs for Login Java Action.
And refer to Mx Docs to learn how to create java actions in Mendix.