在第二页"s2.php"得不到session的值

解决方案 »

  1.   

    去了,也不行啊,哪一个报错选项
    http://jingxinda_com.host1.east365.com.cn/s1.php
    http://jingxinda_com.host1.east365.com.cn/s2.php
      

  2.   

    http://jingxinda_com.host1.east365.com.cn/s1.php
    http://jingxinda_com.host1.east365.com.cn/s2.php
      

  3.   

    session不能依赖cookies传递,用文本先把sessionid写入,到第二页得时候调用sessionid
      

  4.   

    传递的session变量var1的值为:中华人民共和国PHPSESSID=35047e671fc1fd492717f585ae0020cf显示正常
      

  5.   

    改:s1.php<?php
    @session_start();
    session_register("var1");//加入这一句试试
    $_SESSION['var1']="中华人民共和国"; 
    $url="<a href='s2.php'>下一页</a>"; 
    echo $url;
    echo $_SESSION['var1'];
    ?>