dongqiang5932 2015-07-20 09:35
浏览 51
已采纳

如何在Windows共享会话信息上停止多个Apache实例

I have two instances of Apache installed as services, using different .conf files and listening on different ports. This is to host version 2 of our software while still having version 1 available for support on our test system.

Everything works OK, except if I log into both instances, PHP session information is being shared across the two sites. This is a problem, as links to cases in our V1 database are showing up on the V2 page.

I suspect that the session info is being stored on the server in the same place for both instances. I think this is a PHP variable - is there any way that I can set this value in the Apache CONF file?

(I am not using Virtual Hosts). Thanks.

  • 写回答

1条回答 默认 最新

  • douhua1760 2015-07-20 09:49
    关注

    Thanks for the replies. I didn't know where to set the path in the Apache config rather than the PHP.INI, but I have set it here and it works:

    <IfModule php5_php5.c>
      php_value session.save_path "C:\APACHE\sessions\v2"
    </IfModule>
    

    Thanks again.

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

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?