The Logon Program Logic (Magic xpa 4.x)
The logon program logic usually consists of the following elements:
The logic to be performed upon submission of the user details depends on the type of user authentication management you use.
Magic xpa Internal Security Mechanism
If you use the Magic xpa security file, you can use the Logon function to validate the user name and password entered. If the function returns True, the user is validated and considered the logged-on user for the entire application.
User List Table
If you use a simple data table for the list of available users, you need to validate the user details entered against such a table. This can be done by a Link operation, keeping the user-related information required for the application as global information in the Main Program’s variables.
Important:
|
If you use the Magic xpa security file and the application Rights facility, you should note that any security-related function is a server-side activity, especially the commonly used RIGHTS function. To avoid accessing the server for any use of the Rights function, it is best to keep the results of the used Rights function as global variables in the Main Program as well.
|