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/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:196801
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