User Guide

956 Chapter 5: Application.CFC Reference
<cfinclude template="authuserfooter.cfm">
<cfelse>
<cfinclude template="noauthuserfooter.cfm">
</cfif>
</cffunction>
A very simple authuserfooter.cfm page consists of the following code:
<cfoutput>
<h3>Thank you for shopping at our store, #theAuthUser#!</h3>
</cfoutput>
A very simple noauthuserfooter.cfm page consists of the following code:
<cfoutput>
<h3>Remember, only registered users get all our benefits!</h3>
</cfoutput>
To test this example, implement code for logging in a user, or try the example with and without
the following line in the
onRequestStart Application.cfc method:
<cfloginuser name="Robert Smith" password="secret" roles="customer">