在PHP中使用ColdFusion会话变量 [英] Using ColdFusion session variables in PHP

查看:355
本文介绍了在PHP中使用ColdFusion会话变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ColdFusion网站,目前运行良好与登录/注册模块。我想在PHP中使用我的ColdFusion会话。这可以实现吗?

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?

推荐答案

如评论中提到的,没有真的不可能。 CF和PHP不能共享内存会话变量。然而,还有其他的选择,如使用cookie。

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.

我使用这种方法一次,因为客户端想要与PHP论坛软件共享会话。我只是使用cookie,通过找到正在设置的cookie,即< cfdump var =#cookies#> 。然后将这些cookie转换为会话变量。

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.)

另一种可能性是通过使用加密的URL变量安全地发送数据。但我们需要更多地了解你的目标。你能解释一下你在做什么吗?

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?

这篇关于在PHP中使用ColdFusion会话变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆