This customization is designed for Database authentication but can be easily adopted to Active Directory Security.
This customization stores extra information at sign-in time.
There are several reasons to do this, including:
Display a greeting such as, "Hello [first name]".
Filter data based on the logged in user.
The extra information is saved in Session variables and is accessed as, e.g.
Session["firstName"]
Session["lastName"]
This customization will be added in:
..\<Application Name>\Security\SignIn.aspx.vb
For example: C:\MyApp1\Security\SignIn.aspx.vb
Procedure:
Step 1: Configure role-based security using the Application Security Wizard.
Step 2: Use this wizard to add code customization.
Step 3: Insert the following line at the top of the page where the code gets inserted.
using <Application namespace>.Business;
Replace <Application namespace> with your Application namespace name.
Step 4: Edit the Login method by modifying the code between the "[BEGIN]" and "[END]" markers.
Step 5: Build and run the application.
Disclaimer:
Customizations included in this wizard are provided as a sample to demonstrate
a feature, and may work only in specific situations. The Iron Speed Designer
support team cannot assist in the resolution of problems which may occur as a
result of customizing your application or modifying a customization to fit a
particular purpose.