PHP版本多少?
$_SESSION[]要到4.3.X才能用的.

解决方案 »

  1.   

    I had gave you my example that works. Take a look.
    http://community.csdn.net/Expert/topic/4019/4019055.xml?temp=.8875391Post your full code please.
      

  2.   

    楼上的你那程序运行后输出结果是:Item 1 Item 2 
    this is after.phpsession的值还是为空呀。
      

  3.   

    把session_start();放到所有代码的第一行试试看吧