Help in Spanish available here / Ayuda en español disponible aqui

 

Mini PHP Login Suite.

This extension gives basic support for User Authentication in DWMX (PHP_MySQL Server Model).


LOGIN USER FORM:

A Login Form is inserted and the code to make it work.

  • Connection: Select the connection for the DB where the "users" table is.

  • Users Table: Select you "users" table.

  • Username Field: Select which table field stores the usernames.

  • Password Field: Select which table field stores the paswords.

  • If Login Succeeded Go To: Select the URL to redirect if login is successful.

  • If Login Failed Go To: Select the URL to redirect if login Fails (password incorrect).

  • If Username Is Unknown, Go to: Select the URL to redirect if username doesn't exist or is incorrect (a register page, for instance).

If login is successful, the server behabior will create 2 cookies: $HTTP_COOKIE_VARS["tcn_username"] and HTTP_COOKIE_VARS["tcn_password"], which can be used to filter your data.


LOGOUT USER LINK:

It puts a logout link and the code to make it work.
The extension uses the word "Logout" to generate the link: after applying the server behavior, you can change it.

After Logout, redirect To: Select the URL to redirect after Logout.


RESTRICT ACCESS TO PAGE:

It Restricts access to the page for unauthorized users.

Redirect To: Select the URL to redirect unauthorized users.


CHECK NEW USERNAME:

It checks if the selected username in a record insertion form already exists.
Please Note: Before using this server behavior, you must create a record insertion form.

  • Get Username From Form Field: Select the form field used for the username.

  • Connection, Users Table, Username Field: Select connection, your DB Users Table and username field.

  • If Username Exists, Go To: Select a URL to redirect if username already exists.