So, put your one template in it's own folder, with it's own Application.cfc that extends the root Application.cfc, but has additional functionality added to it's methods. Say you have an onRequestStart method in the root Application.cfc. You want the functionality of that method, plus the security stuff:
<cffunction name="onRequestStart" access="public" output="false" returnType="boolean"> <cfargument name="thePage" type="string" required="true" /> <cfset SUPER.onRequestStart(thePage = ARGUMENTS.thePage) /> <!--- The security logic stuff ---> <cfreturn true /> </cffunction> Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of "Learning Ext JS" http://www.packtpub.com/learning-ext-js/book _____________________________ http://blog.cutterscrossing.com On 6/22/2009 3:46 PM, jason robinson wrote: > Hi there, > > I'm working on my first full CF website. I've done work in the past using CF > and Flash as well as CF and Flex, so you'd think doing just CF would be > easier. Unfortunately the entire process is giving me an inferiority complex. > :( > > In any case, I'm trying to do a simple login/logout feature. I've read a > number of articles discussing the use of an Application.cfc to secure an app > (Ben Forta's book) but I'm still having trouble. The thing is, I don't need > my entire app secure, I just need one page secured (a member_profile.cfm). > I've tried placing the member_profile.cfm page in a folder and adding the > Application.cfc to that folder. This works but if I want to logout of the > site, I need to have my logout.cfm in the folder as well (which of course > automatically asks me to login). There has got to be a better way. Should I > be using an Application.cfm file? I'm clearly missing something fundamental > here. > > Any advice/direction would be greatly appreciated. > > Thanks. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323784 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4