cf_login
| Click to Download |
Description |
| Adds a login module to a website. Filters a specified database table by the form fields specified and creates a logged in state. Recently modified to create unique session structures to accomodate for multiple tags running different tables on the same application. |
Usage |
| Include at the top of the page with a login form on. This tag requires that you user the following datasource names in your application file. request.dsn request.uid request.pwd |
Attributes |
||
| redirect | Optional | The name of the page to redirect to after logging in. Default is current page. |
| dsn | Optional | The datasource used to contain login database if not specified in the application file. |
| id | Required | The unique identifier for database record to retrieve. |
| username | Required | The name of the field that contains the username. Must be named the same as the form field. |
| password. | Required | The name of the field that contains the password. Must be named the same as the form field. |
| tablename | Required | The name of the database table to retrieve the data from. |
| cf_login.isloggedin | Return | A variable returned from the tag. Has values of true or false. |
| cf_login.loginid | Return | A variable returned from the tag. Returns the unique record ID provided from the ID attribute. |
| cf_login.loginuser | Return | A variable returned from the tag. Returns the username of the logged in user. |
| cf_login.loginaccess | Return | New output variable that outputs the value of the login access field. Type in the database field name into this attribute. |
