Configure login settings

In this tutorial topic you will set the correct Login settings for your site. In order to do this, open the index page and then the InterAKT Control Panel from the MX Kollection tab of the Insert bar:

 

Click on the Login settings entry of the control panel. Follow the instructions below when configuring the options:

  1. In the Options tab leave the default settings. We will not use access levels (check again the database structure).


     

  2. In the Database tab configure the drop-down menus as shown in the following image. First, select the database connection created earlier (conn_details_session) and the user_usr table. The rest of the drop-down menus will be populated with options retrieved from the table columns. Select them as shown below. We are not using an Active column, so select None in the corresponding drop-down menu.


     

  3. In the Session tab define which table column values will be stored in session variables for later use (to display the current user's details). Add more session variables in the grid than the ones created by default (kt_login_id and kt_login_user). Click the plus (+) button above the Session variables grid. In the Add window that pops-up, except for the password_usr, select the rest of the table columns (hold the CTRL key pressed and select each of them, and then click OK):



    The user interface corresponding to the Session tab after adding the needed session variables should look like this:


     

  4. In the User levels tab use the Browse button to select the redirect pages in the three text boxes on top. Configure them as shown in the image below. If the login process succeeds, the user is redirect to the details page, where they can view their private information. Since we are not using user levels, leave the grid in the bottom part as it is:


     

  5. Click OK to close the Login Settings dialog box.

If you check the Bindings tab of the Application panel, you will notice there the session variables that you just added:

 

It is time to create the login form now. Start the Login Form Wizard from the MX Kollection tab of the Insert bar and configure it as explained below:

  1. The first step of the wizard displays the login settings previously configured in your site. If you notice anything doubtful or if you want to check them again, just click the Change Login Settings button. Then you can safely move on to the next step of the wizard by clicking the Next button in the bottom part of the interface:


     

  2. In the second and last step of the Login Form Wizard check both checkboxes displayed there. A new page will be created in your site root named forgot_password. It is used when the site user has troubles remembering his/her password. The "Remember me" checkbox allows the once logged-in user to skip the login process the next time they login since their username and password are now remembered by the site:


     

  3. Click Finish when you are done configuring the wizard.

 

After completing this tutorial topic, your page in Dreamweaver should look similar to this:

 

If you save it, upload it to the server and then preview it in the browser, a similar login form should be displayed:

 

In the next topic you will build the details page so that the logged-in user in the current session can check them out.