home *** CD-ROM | disk | FTP | other *** search
- <!--- This view-only example shows the use of CFAUTHENTICATE
- in an Application.cfm file --->
- <HTML>
- <HEAD>
- <TITLE>CFAUTHENTICATE Example</TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <H3>CFAUTHENTICATE Example</H3>
- <P>The CFAUTHENTICATE tag authenticates a user and sets the
- security context for an application.
- <P>Code this tag in the Application.cfm file to set a
- security context for your application.
- <P>This is a view-only example. Refer to the commented
- source code to see what you might code for
- CFAUTHENTICATE.
-
- <!--- This code is from an Application.cfm file --->
- <!---
- <CFIF NOT IsAuthenticated()>
- <CFTRY>
- <CFAUTHENTICATE SECURITYCONTEXT="Allaire" USERNAME=#user#
- PASSWORD=#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>