3 Replies Latest reply on Dec 30, 2010 6:49 AM by ilssac

    session variable against cross domain

    Nick201 Level 1

      How do I use session variable against cross domian. I couldn't find any sample code.

       

      For example: I login in 1 app and it should automatically login in other apps without re-login.

       

      Thanks for your help in adavance.

        • 1. Re: session variable against cross domain
          ilssac Level 5

          For this to work with just session data, the following has to be true.

           

          1) All the applications need to be executing on the same ColdFusion server on the same computer box.

           

          2) All the applications have to share the same "Application Name" OR there has to be code that will copy data from one application to another that executes somewhere in your application(s).

           

          3) All the applications have to receive the same CFID and CFTOKEN (OR JSESSIONID) cookie values.

           

          If all these items are true then the same session data will be available to these applications and the applications can apply whatever login logic you desire based on the data.

          • 2. Re: session variable against cross domain
            Nick201 Level 1

            Thanks. But do you have any examples. That would be really helpful. I couldn't find any.

             

            Thanks again!

            • 3. Re: session variable against cross domain
              ilssac Level 5

              Examples of which one?

               

              What exactly are you trying to do?  How are the varous applications related to each other?  What is the server and box configuration?