<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()#" />
See also
- GetAuthUser()
- GetUserRoles()
- IsUserInAnyRole()
- IsUserInRole()
- IsUserLoggedIn()
- <cfloginuser>
- <cflogout>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)