老老老问题了前面不能有任何html或者echo等输出!!!

解决方案 »

  1.   

    不好意思,其实上面还有些html,根据一楼的,错误是不见了,但$cuid这个值在下一张网页没有带过去,为什么???
      

  2.   


    $_SESSION['cuid'] = "aaa";
      

  3.   

    http://www.kupai.com/fjsms/0002.asf
    大家快来看啊
      

  4.   

    1.php
    <?
    session_start();
    session_register('tt');
    $_SESSION['tt']="aaa";
    ?>
    <a href="2.php">next</a>2.php
    <?
    session_start();
    echo $_SESSION['tt'];
    ?>看看效果
      

  5.   

    检查php.ini的session_start()是否自动开始。一般session_start();需放在页面第一行。