Guest Access

Another important aspect of creating web mode applications is the use of the 'Guest Access' feature. To enable this your application must be set to not require login. By default if your site doesn't require a login, it will log the user in as the system administrator. You must create a user record, and set the user's 'Is Guest' field to 'Yes' to make that the user record that users will be logged in to automatically when they access your web site.

While the user will be able to access the site without logging in, they can still login after accessing the site. You should just provide a link to a login page to accomplish this. For web mode, the link to the login page is "w,wmlogin.aspx". The wmlogin.htm template can also be overridden. See the login page template in the Skinning section for more information.

Once you have set up the guest account, you can then use the security features to limit the access that guest account will have.

You can use the DbfScript command GetUser() and GetUserExtendedField(field) to retrieve information about the currently logged-in user from within your web page.


Next Topic:
v4.2.0.956 (beta)
Up Since 2/29/2024 12:02:23 AM