On 1/24/06, jonese <[EMAIL PROTECTED]> wrote:

> right but how can we do this and still maintain the fact that these
> files are shared among 50 other sites, with 50 unique application
> names?


I dimly remember some Java trickery you can do (in MX of course) to grab
variables from the server for a given application. However, that path is
likely fraught with peril.

My first inclination would be to create a central repository for shared
variable values. Much like the way CF can save client scopes to a database.
Create a database table that stores the session, using some user value that
is unique across applications as the primary key (could be session, I can't
remember if they are unique to the server or to an app). Create a custom tag
that reads and writes an arbitrarily named struct ("sharedVariables" for
instance) to this table. Put this custom tag in Application.cfm and
OnRequestEnd.cfm so the shared variables struct is refreshed and saved for
each request. When you need to read or write a variable that should be
shared, you use the "sharedVariables" struct as the scope.

Pros: no additional work when you add a 51st application.

Cons: read and write to the database for each user request, requires a user
unique key.

--
Howard Fore, [EMAIL PROTECTED]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230319
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

Reply via email to