a.php
<a href="b.php?PHPSESSID=<? echo session_id(); ?>"> 这样试试。或者
session.use_cookies = 0

解决方案 »

  1.   

    session.use_cookies = 0
    这样不行,我刚试一下,还是老样子
      

  2.   

    我用的是:php4.3.1+mysql4.3+Apache2.1环境,是不是什么地方没有配置对啊?
      

  3.   

    php session_start();
    session_register("sessregoster");
    session_register("sesspwd");
    session_register("sessemail");
    $_SESSION["sessregister"]=$register_id;  //email as session
    $_SESSION["sesspwd"]=$txtUserpd;//password as session
    $_SESSION["sessemail"]=$email;//$email as session
      

  4.   

    session_register("sessregoster");
    session_register("sesspwd");
    session_register("sessemail");
    还是不行但是我发现:在我的网站下有几个虚拟目录,其中有一个虚拟目录下可以传输成功,但是在这个虚拟目录下就是不行,这是什么原因啊????
    我的虚拟目录设置如下:
    Alias /icons/ "E:/Apache Group/Apache2/icons/"
    #===================================================
    Alias /test/ "E:/Apache Group/Apache2/test/"
    Alias /test1/ "E:/Apache Group/Apache2/test1/"
    Alias /sinocast/ "E:/Apache Group/Apache2/sinocast/"
    Alias /sinotest/ "E:/Apache Group/Apache2/sinotest/"
    Alias /company/ "E:/Apache Group/Apache2/company/"
    #======================================================
    <Directory "E:/Apache Group/Apache2/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #=====================================================
    <Directory "E:/Apache Group/Apache2/test">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #==========================================================
    <Directory "E:/Apache Group/Apache2/sinocast">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #===========================================================
    <Directory "E:/Apache Group/Apache2/sinotest">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #===========================================================
    <Directory "E:/Apache Group/Apache2/test1">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #==========================================================
    <Directory "E:/Apache Group/Apache2/company">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #==========================================================
    其中在testAlias /icons/ "E:/Apache Group/Apache2/icons/"
    #===================================================
    Alias /test/ "E:/Apache Group/Apache2/test/"
    Alias /test1/ "E:/Apache Group/Apache2/test1/"
    Alias /sinocast/ "E:/Apache Group/Apache2/sinocast/"
    Alias /sinotest/ "E:/Apache Group/Apache2/sinotest/"
    Alias /company/ "E:/Apache Group/Apache2/company/"
    #======================================================
    <Directory "E:/Apache Group/Apache2/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #=====================================================
    <Directory "E:/Apache Group/Apache2/test">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #==========================================================
    <Directory "E:/Apache Group/Apache2/sinocast">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #===========================================================
    <Directory "E:/Apache Group/Apache2/sinotest">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #===========================================================
    <Directory "E:/Apache Group/Apache2/test1">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #==========================================================
    <Directory "E:/Apache Group/Apache2/company">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    #==========================================================
    其中在test下就可以实现session变量的传输,但在sinocast下就不行,这是什么原因啊?/
    真是郁闷,请各位师兄弟指教
    先谢了
      

  5.   

    据我所知,应该是$txtUserpd和$email没有赋值吧??应该不是php 的设置问题,设置你可以看下
    http://art.21e.cn/tec/7/witchina1418.htm
      

  6.   

    你可以在赋值以前,我是说
    $_SESSION["sessregister"]=$register_id;  //email as session
    $_SESSION["sesspwd"]=$txtUserpd;//password as session
    $_SESSION["sessemail"]=$email;//$email as session这个之前,输出$txtUserpd和$email看看是否有输出
      

  7.   

    我用的是:php4.3.1+mysql4.3+Apache2.1环境,是不是什么地方没有配置对啊?你用的是win系统吧?请指定SESSION的实地址,如:
    session.save_path = c:\winnt\temp
      

  8.   

    调用页面 $_SESSION['']; 这行去掉.
      

  9.   

    还有 session.auto_start 设置为 1 时, 页面中就不要加 session_start();