When using Dreamweaver's Log In User server behavior, you may want to use the user name on the very next page (the "redirect page") or on other pages in your web application. Some reasons you may want to pass the user name onto other pages include:
- You want to greet the user after logging in. For example: "Hello John!"
- You want to filter a recordset based on the user name in order to personalize the page.
- You want to insert the user name into a form field to be used for inserting, updating or deleting a record.
The Log In User server behavior automatically generates a session variable consisting of the user name for the user when they log in successfully. The session variable for the user name is labeled "MM_Username".
Note: A second session variable is also automatically generated containing the user's authorization level, should you need to use this information on other pages. This session variable is named "MM_UserAuthorization".