Skip to main content
December 28, 2010
Question

session variable against cross domain

  • December 28, 2010
  • 1 reply
  • 729 views

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.

This topic has been closed for replies.

1 reply

ilssac
Inspiring
December 28, 2010

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.

December 29, 2010

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

Thanks again!

ilssac
Inspiring
December 30, 2010

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?