So I moved it up, but it didn't solve anything. I'm stuck. Any other ideas?
Steve -----Original Message----- From: DURETTE, STEVEN J (ATTASIAIT) Sent: Wednesday, February 13, 2008 10:38 AM To: CF-Talk Subject: RE: Strange happenings in a login. CFMX 6.1 I can't move it completely to the top. Variables.inLogin and Variables.pageTitle have to be set before the upper Application.cfm is fired or they will be set to defaults. As for checking the session before it is created... Well sort of. That would only happen if the person went directly to the login page instead of the index of the main site. Most people would go to /PowerCo/Index.cfm which would fire off the /PowerCo/Application.cfm which creates the application and session variables. Then that file sees that there isn't a value in the session variable and send it to the login screen. Therefore the session is already created when it gets to /PowerCo/Login/Application.cfm. I will try it anyhow as there would be an error if someone went directly to the login instead of the main site. Hadn't even thought about that one. Steve -----Original Message----- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 10:19 AM To: CF-Talk Subject: Re: Strange happenings in a login. CFMX 6.1 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:298913 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

