<cflogin>
A container for user login and authentication code.
Lucee runs the code in this tag if a user is not already logged in.
You put code in the tag that authenticates the user and identifies the user with a set of roles. Used with <cfloginuser> tag.
This tag must have a body.
This tag is also supported within <cfscript>
<cflogin
idleTimeout=number
applicationToken=string
cookieDomain=string
><!--- body ---></cflogin>
Attribute | Description |
---|
Unimplemented Attribute(s)
Examples
<cflogin>
<cfloginuser name = "test" password = "password" roles = "user,admin,editor">
</cflogin>
<cfdump var="#getUserRoles()#" />
Related System Properties / Environment Variables
- LUCEE_LOGINSTORAGE_ITERATIONS - Specifies the number of encryption iterations for loginstorage
Type: numeric, Default: false - LUCEE_LOGINSTORAGE_PRIVATEKEY - A private key used to encrypt loginstorage. If not defined, a simple base64 encoding is used
Type: string - LUCEE_LOGINSTORAGE_SALT - The salt used for encrypting loginstorage. If no salt is defined, a hardcoded salt is used
Type: string
See also
- GetAuthUser()
- GetUserRoles()
- IsUserInAnyRole()
- IsUserInRole()
- IsUserLoggedIn()
- <cfloginuser>
- <cflogout>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)