I'm thinking that Adrian is right, I definitely find myself uncomfortable with this solution.
If you are creating some sort of shared variables or other code that needs to be run by both apps, then you would probably be better served creating an include file that is included by both Apps and doesn't have cfapplication on it. Something like this: _application.cfm <--- Has the shared code ClientApp/Application.cfm includes _application.cfm and has its own cfapplication AdminApp/Application.cfm includes _application.cfm and has its own cfapplication Will that resolve it? Calvin -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 11:40 AM To: CF-Talk Subject: RE: REPOST: Two applications sharing cfid/cftoken One point. If you have one App.cfm including another and both have a cfapp tag, it'll run like this for the one that includes the other. Name this app App_1 Now name this app App_2 This might not sit well with the creation of cfid and cftoken which will happen twice on this page. A nice way to test this would be to create a new directory and then mimic the layout with only the bare minimum of files. So two App.cfms and some files to do the logging in and out. Ade -----Original Message----- From: Scott Brady [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 16:31 To: CF-Talk Subject: Re: REPOST: Two applications sharing cfid/cftoken On Mon, 28 Feb 2005 16:20:12 -0000, Adrian Lynch wrote: > With out reading your post too intently, sessions belong to an application, > you have two apps so it's right that the sessions change. It's not so much the sessions changing, it's that one of the apps is "stealing" the session from the other and resetting the session (thereby logging you out of the original session). However, the reverse does not occur. (i.e., App A will steal the session of App B, but App B doesn't take the session of App A). > Do you need to > include one App.cfm in the other? If it's because of data in one that you > need in another you could put them in a shared file and include it in both. I inherited this code (there's a lot of crap code :) ), so I'm not sure I could explain why if I wanted to. It would take a lot of revamping to not include one application.cfm in the other. > Sorry if that's not of much help, I'm not sure about the issue with sessions > remaining or ending when you go between the two apps but I have a feeling > it's not a bug with CF but more to do with the way you've built the App.cfm > files. Oh, I'm sure it has something to do with the code (see "crap code" above :) ), but I'm hoping someone may have seen this before and can explain why and give hints on how to fix it. Thanks! Scott -- ----------------------------------------- Scott Brady http://www.scottbrady.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196803 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54