RAD Studio |  |

Adding Login Support

In order to implement login support, you need to make sure your Web application module has the following components:

- A user list service (an object of type TWebUserList), which contains the usernames, passwords and permissions for server users
- A sessions service (TSessionsService), which stores information about users currently logged in to the server
- An end user adapter (TEndUserSessionAdapter) which handles actions associated with logging in

When you first create your Web server application, you can add these components using the New WebSnap Application dialog box. Click the Components button on that dialog to display the New Web App Components dialog box. Check the End User Adapter, Sessions Service and Web User List boxes. Select TEndUserSessionAdapter on the drop down menu next to the End User Adapter box to select the end user adapter type. (The default choice, TEndUserSessionAdapter, is not appropriate for login support because it cannot track the current user.) When you're finished, your dialog should look like the one shown below. Click OK twice to dismiss the dialog boxes. Your Web application module now has the necessary components for login support.

If you are adding login support to an existing Web application module, you can drag these components directly into your module from the WebSnap category of the Tool Palette. The Web application module will configure itself automatically.

The sessions service and the end user adapter may not require your attention during your design phase, but the Web user list probably will. You can add default users and set their read/modify permissions through the WebUserList component editor. Double-click on the component to display an editor which lets you set usernames, passwords and access rights. For more information on how to set up access rights, see the topic "User access rights".

For information on login support, see Login Support.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!