Thanks raymond,

What I have done is include the following in your app (removing your
cfapplication)...

<!--- include root application for login settings --->
<cfinclude template="../application.cfm">

I was thinking of using my existing roles and modifying your code to
suit, however your suggestion does sound straight forward.

I will however have to use my existing profile table as it includes
information relating to an ecommerce frontend. So I think I have
identified the areas I will need to modify eg. users.cfc

mike

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 14 December 2005 4:15 p.m.
To: CF-Talk
Subject: Re: Cflogin and subdirectories


If your root app also uses cflogin, you can just sync up the roles. Ie,
Galleon wants forumsmember, forumsmoderator, and forumsadmin for the
roles. If your app has roles of:

goober and admingoober

Then you can say that when a user logs on with roles of goober, also
give them the role of forumsmember, and when they log on with role of
admingoober, also give them forumsadmin.

That may work. :)

On 12/13/05, Mike | NZSolutions Ltd <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I am integrating raymond's forum into an administration app I have. 
> The folder tree is...
>
> Web_root/admin/forum
>
> In the admin folder I have an application.cfm which handles logging in

> a user. Now on the homepage of the admin I have a link to the forum. 
> Because the forum has it's own application.cfm - how do I pass on the 
> cflogin details from the level above so I can restrict unauthorised 
> users going straight to the forum.
>
> Eg. in the forum/application.cfm having something like...
>
> <!--- check that user is logged in --->
> <cfif not len(getAuthUser())>
>         <cflocation url="../index.cfm" addtoken="no">
> </cfif>
>
> Even if I am logged in, the application.cfm is returning me to the 
> admin/index.cfm.
>
> Any help would be appreciated.
>
> mike
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226986
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to