Adding a Remember Me Server Behavior to the Bettergig Site page 2

 by Tom Muck

After downloading and installing the behavior, you can add the functionality easily. Here are the steps:

1. Open the login_user.asp page. On this page you'll find a textfield for Username and a textfield for password. Make sure the password field is set up properly as a password-type text field. You can do this in the property inspector by clicking the "Password" radio button.

2. Add a checkbox field to the table:

3. Go to the Server Behaviors menu and click Basic-UltraDev >> Remember Me. This will bring up the following dialog box:

4. On this particular page, the username, password, and checkbox field will all automatically pop up in the dialog box. Simply fill in the rest of the information:

  • Username Cookie: name for the username cookie. Can be anything.
  • Password Cookie: name for the password cookie Can be anything.
  • Remember Me Cookie: name for the Remember Me cookie (checked or unchecked). This can be anyting as well.
  • Expires in Days: Length of time in days that the cookie will remain active.

5. Simply click OK and you are done. The code is inserted at the top of the page to allow the setting of the cookie information after the submit button is clicked. Also, each form field has some server-side code attached to it that allows the display of the cookie information in the field.

Tom Muck, 2001

<<< Previous Home >>>