doujiao3016 2012-05-07 10:14
浏览 31
已采纳

如何禁用cookie,我们如何将会话数据传输到另一个子域。

We would like to know the source code for transfer the session data to the sub-domain.

www.xyz.com // session data transfer to dev.xyz.com
dev.xyz.com // 

We are not able to get the data, if there is a Cookies Disabled by User end. please suggest me.

Thanks

PPS

  • 写回答

1条回答 默认 最新

  • duandu8892 2012-05-07 10:24
    关注

    One way I can think of is like this:

    make a hash with visitor IP and browser and send it along with encoded (base64?) $_SESSION data to second server like:

    file_get_contents('http://dev.xyz.com/gateway.php?session=$IPBrowser&session=$session')
    

    on the second server save that to a temporary table?/file and redirect user to second domain. then you check his info based on IP and Browser and apply SESSION data.

    this a VERY vulnerable solution, but it's a solution. I posted this thinking you are using for dev purposes.

    And no, I will not make the source code.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 Revit2020下载问题
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大
  • ¥15 单片机无法进入HAL_TIM_PWM_PulseFinishedCallback回调函数
  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息