Remember that the inside of a cflogin block will run when you aren't
logged in. For a site where you DEMAND login, then you have code like
so:

if not logged in:
 show login form
 abort

To NOT require a login, you simply mod your logic like so

if not logged in and this is a protected page:
  show login form
  abort

Does this make sense?

On 2/13/07, Steve Hanzelman <[EMAIL PROTECTED]> wrote:
> I am developing an application where I do not want to force users to sign in 
> unless they actually require access to certain portions of the application.  
> How can I use cflogin in my application component without that requiring 
> "users" from logging in when they do not need to do so?
>
> I have the admin pages/sections blocked with isUserInRole that will then 
> redirect them to a login page if they need to access that area.
>
> I guess where I'm confused is that whenever I've used application.cfc and the 
> cflogin framework in the past, it required users to sign in prior to doing 
> anything in the application.  Now, I only need it for certain pages and am 
> having a problem.
>
> The example that is loaded in CFIDE\gettingstarted looks to be what I'm 
> looking for, but the application.cfc is unreadable.
>
> Thanks for any feedback,
> Steve
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269792
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