ColdFusion provides the following tags and functions for user security:
Tag or function | Purpose |
---|---|
A container for user authentication and login code. The body of the tag runs only if the user is not logged in. When using application-based security, you put code in the body of the |
|
Identifies (logs in) a user to ColdFusion. Specifies the user's ID, password, and roles. This tag is typically used inside a The While the user is logged-in to ColdFusion, security functions can access the user ID and role information. |
|
Logs out the current user. Removes knowledge of the user ID and roles from the server. If you do not use this tag, the user is automatically logged out as described in Logging out users. The |
|
Authenticates a user name and password against the NT domain on which ColdFusion server is running, and optionally retrieves the user's groups. |
|
If you include a |
|
Returns True if the current user is a member of the specified role. |
|
Returns the ID of the currently logged-in user. This tag first checks for a login made with |
This section describes the following topics: