Skip to main content
Participant
January 24, 2010
Question

Sharing client variables between applications

  • January 24, 2010
  • 1 reply
  • 355 views

I have a situation where I have a small application within a larger application.  The small application uses Coldbox and the large one does not, so they have their own application names and settings.  I've figured out how to share APPLICATION and SESSION scope variables, but after hours of searching I can't figure out a good way to share CLIENT variables (which are stored in a database).  Basically when a user enters the subapp from the main app, I want all of their client variables from the main app to carry over.  The best I can figure so far is to pass in the session id and query the client storage database, or make the application names the same for both applications, but I don't really like either of these solutions.

What is the best way to share the CLIENT scope between two separate applications?

Thanks!

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    January 24, 2010

    The best I can figure so far is to pass in the session id and query the client storage database, or make the application names the same for both applications, but I don't really like either of these solutions.

    What is the best way to share the CLIENT scope between two separate applications?

    What you're currently doing (passing in the session id, querying the client storage database, and making the application names the same) is, in my opinion, the best way. Technically, at least.

    The client scope shares the exact same identifiers, CFID and CFToken, as the session scope. The session scope is in turn bound to the application name, which is stored in the application scope. There is an unavoidable dependency there.