http://expert.csdn.net/Expert/TopicView2.asp?id=1312288&datebasetype=now

解决方案 »

  1.   

    对没错你在php.ini中找一个
    session_path这一类的东东。那里有一个目录你得确保他指定的那个目录存在。就可以了。
      

  2.   

    相关代码:  if(session_start){
       echo "Session start...........";
       };
      if(session_register("s_username","s_password")){
       echo "Session successfully register...........<br>";
       };
      include("db.inc.php");
      include("config.inc.php");
      echo $user_name;
      echo "$user_password<br>";
      $s_username=$user_name;
      $s_password=$user_password;
      

  3.   

    与你的php版本、php的配置文件等有关
    如果register_globals = off你应该用$_SESSION[变量名]=变量值
    在脚本的第一行session_start();