Building the logout

When a user has finished with your site, they may choose to close their session. Or this can be done in an automatic manner, when the user enters a certain page. This is called a logout operation.

To implement this action, MX User Login contains a server behavior called Logout User. You can access it from the Application panel, Server Behaviors -> + -> MX Kollection -> User Login -> Logout User. The user interface has only one tab.

 

To set the dialog box options, follow the next steps:

  1. The Log out when radio group offers a choice for the start method of the logout operation:
    · If you choose Link clicked, you can select from the associated drop-down menu either a text section you've previously selected or Create New Link: "New link" (it will automatically generate the link into the page). A second option is "Forgot your password?".
    · If you choose Page loads, the logout operation will be started when the page loads in the browser.
  2. In the After logout, go to text box, enter the page that will be opened after the user logs out. You can use the Browse button to locate the file.
  3. If you need to change anything regarding the general login settings, you can press the Change Login settings button to open the login settings entry of the Control Panel.
  4. The three buttons in the top right corner of the interface offer you the next functionalities:
    · Click OK when you are done configuring the server behavior.
    · Click Cancel to exit without the new settings to be applied.
    · The Help button takes you to this help page.

Note: If you use this server behavior on the ColdFusion server model, a file named Application.cfm will be automatically generated in the site root folder. Do not delete this file, as it contains settings related to session variables used by the server behavior and the current application. If you remove this file or modify it, application pages that use sessions will not function properly.