<!---  This view-only example calls the IsAuthenticated
       function. --->

<HTML>
<HEAD>
<TITLE>IsAuthenticated Function</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">
<H3>IsAuthenticated Function</H3>
<P>The IsAuthenticated function indicates whether a
user has been authenticated.
<P>You typically code this tag in the Application.cfm file. 
<P>This is a view-only example. Refer to the commented
source code for more information.
<!--- This code is from an Application.cfm file --->
<!---
<CFIF NOT IsAuthenticated("Allaire")>
  <CFTRY>
  <CFAUTHENTICATE SECURITYCONTEXT="Allaire" USERNAME=#FORM.user#
    PASSWORD=#FORM.pwd#>
  <CFCATCH TYPE="Security">
  <H3>Authentication error</H3>
    <CFOUTPUT> --->
    <!--- Display the message. Alternatively, you might place
      code here to define the user to the security domain. --->
<!---
    <P>#CFCATCH.message#
    </CFOUTPUT>
  </CFCATCH>
  </CFTRY>
</CFIF>
<CFAPPLICATION NAME="Personnel">
--->
 
</BODY>
</HTML>      
