参考这个:
http://expert.csdn.net/Expert/topic/2290/2290919.xml?temp=.2153894不过我现在还没有解决~~~~点背?~~~

解决方案 »

  1.   

    去www.php.net下一个手册,里面讲得十分清楚。
      

  2.   

    <?php
    //1.php
    session_start();
    $_SESSION['aa'] = "test";//session变量aa的值为test
    echo "<a href=2.php>test</a>";
    ?><?php
    //2.php
    session_start();
    echo $_SESSION['aa'];//输出aa的值
    ?>
      

  3.   

    <?php
    //1.php
    session_start();
    $_SESSION['aa'] = "test";//session变量aa的值为test
    echo "<a href=2.php>test</a>";
    ?><?php
    //2.php
    session_start();
    echo $_SESSION['aa'];//输出aa的值
    ?>
      

  4.   

    or a.php:
    session_register["a"]="test";
    $a="another";
    b.php:echo $_SESSION["a"]; //another