You are checking a session variable before you've enabled the session
with the cfapplication tag:

--------------------
/PowerCo/login/Application.cfm
---------------------
<cfsilent>
<cfset Variables.inLogin = true />
<cfset Variables.pageTitle = "Login" />
</cfsilent>
<cfif isDefined("Session.loggedIn") and Session.loggedIn>
 <cflocation addtoken="No" url="/PowerCo/main.cfm" />
</cfif>
<cfinclude template="..\Application.cfm" />

Move the include to the top.

On Feb 13, 2008 11:15 PM, DURETTE, STEVEN J (ATTASIAIT) <[EMAIL PROTECTED]> 
wrote:
> The reason I have two Application.cfms is that the
> /PowerCo/Application.cfm is the full on Application.cfm that sets almost
> everything I need, the /PowerCo/Login/Application.cfm sets
> variables/checks that are specific to that directory, then calls the
> /PowerCo/Application.cfm.
>
> I have an Application.cfm in every subdirectory, they all set directory
> specific variables, then call the Application.cfm from the directory
> above.  It stops at the /PowerCo/Application.cfm.
>
> Again, this has never been a problem in the past, and only the login
> screen is doing this weird have to login more than once thing.


-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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