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:
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".
To utilize the MM_Username session variable on the pages in your site, open the login page in Dreamweaver. Open the Bindings panel. Click the plus (+) button and choose Session Variable from the pop-up menu. In the dialog box that pops up, enter "MM_Username" (without the quotes) in the name field. Click OK. Expand the Session icon that appears in the Bindings panel. The newly defined data source should appear, with a yellow lightning bolt icon next to it.
Using the MM_Username session variable in your pages:

If you would like to pass form data other than the user name from your login page, please refer to How do I create a session variable? (TechNote 14791) for detailed information on creating session variables.
For an explanation of why session variables should be used to pass form data from a login page to successive pages, please refer to: How to pass form data from an insert, update or delete page (TechNote 15239). Though the TechNote discusses the insert, update and delete server behaviors, the mechanics are similar for the Log In User server behavior.
Sign in to your account