Share Session Variable Across Server Side Languages
Posted on 2009-05-04
I got started out coding in Coldfusion. I know it is not open source like PHP and thus less used. I do however, really love the way it works and its simplicity. In any case, I am getting a lot of code PHP code from various vendors and other companies with whom I would like to integrate.
I have my users authenticate and then the Coldfusion establishes a session variable that tracks that they have logged in and their access level.
Once a person has authenticated, I would like to pass this session information along to the PHP scripts and hopefully use the same names so that both languages can grant/deny access accordingly.
I know that I could embed a form in the page and then have clicking on the link submit the hidden form to the PHP page that would then receive the authentication information. What would the downside to this be? Is there a better way?