Tags · Functions · Objects
Lucee Tag Reference
Choose a tag:

Tag <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.

Body

This tag must have a body.

Example

	<cflogin
		[applicationtoken="string"]
		[cookiedomain="string"]
		[idletimeout="number"]>

	</cflogin>
This tag is also supported within cfscript
	<cfscript>
		login
		[applicationtoken="string"]
		[cookiedomain="string"]
		[idletimeout="number"] {

	}
	</cfscript>

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
applicationtoken string No The login that applies to the application. To let users log in to only one application, specify a unique value for that application. To let users log in to multiple applications, specify the same value for those applications. If you do not set a value for the applicationtoken attribute, the default value is CFAUTHORIZATION_applicationname. 
cookiedomain string No Domain of the cookie that is used to mark a user as logged in. Use this attribute to enable a user login cookie to work with multiple clustered servers in the same domain. 
idletimeout number No Time interval, in seconds, after which Lucee logs off the user.