Try only using one application.cfc in the web root and then, in that file,
do something like:

<cfif FindNoCase("member_profile.cfm", cgi.SCRIPT_NAME)><!--- auth logic
---></cfif>

P.S. Are you using a CFML framework...?  http://cfframeworks.com


On Mon, Jun 22, 2009 at 3:46 PM, jason robinson <[email protected]> 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:323783
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to