Using ColdFusion session variables in PHP

柔情痞子 提交于 2020-01-05 08:48:25

问题


I have a ColdFusion website that is currently running well with login/register modules. I want to use my ColdFusion session in PHP. Can this be achieved?


回答1:


As mentioned in the comments, no it's not really possible. CF and PHP cannot share in memory sessions variables. However, there are other alternatives such as using cookies.

I used that approach once because a client wanted to share sessions with PHP Forum software. I simply grabbed it using cookies, by finding what cookies were being set ie <cfdump var="#cookies#">. Then converted those cookies into sessions variables. (If you need it the other way around, try doing it in reverse.)

Another possibility is sending data securely by using encrypted URL variables. But we need to know more about your goal. Can you explain exactly what you are doing?



来源:https://stackoverflow.com/questions/16543084/using-coldfusion-session-variables-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!