Alphabetical List of ColdFusion Functions
IsAuthenticated
Description
Returns TRUE if the user is authenticated for a ColdFusion security context. If you
specify a security context name,
authenticated for it. See the Usage section for crucial information.
Category
Decision functions
IsAuthenticated([security-context-name ])
Syntax
See also
cfauthenticate, AuthenticatedContext, AuthenticatedUser,
Parameters
Parameter
security-context-name
Before using IsAuthorized, ensure that advanced security is enabled in the
Usage
ColdFusion Administrator, and define the security contexts.
Example
<!--- This example calls the IsAuthenticated function. --->
<!--- This code is from an Application.cfm file --->
<cfif NOT IsAuthenticated("Allaire")>
<CFTRY>
<CFAUTHENTICATE SECURITYCONTEXT = "Allaire" USERname = #user#
PASSWORD = #pwd#>
<CFCATCH type = "Security">
<!--- the message to display --->
<H3>Authentication error</H3>
<cfoutput>
<!--- Display the message. Alternatively, you might place
<P>#CFCATCH.message#
</cfoutput>
</CFCATCH>
</CFTRY>
</cfif>
<CFAPPLICATION name = "Personnel">
</body>
</html>
code here to define the user to the security context. --->
IsAuthenticated
Description
Security context name
returns TRUE if the user is
IsAuthorized
459
Need help?
Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?