看看你CIIKIE的时效,和mycook一样设置一下时间看是不是可以,怎么不用SESSION来做呢?

解决方案 »

  1.   

    我没有设时效 如果用session的话 每次网页关闭的时候都会释放掉 下次再用的时候还得重新登陆
      

  2.   

    那只能说明cookie变量没有注册成功或中途失效了
      

  3.   

    我在default.php中首行写入如下代码:
    <?php
      session_start();
    ?>
    出现如下错误:
    Warning: session_start(): open(/tmp\sess_cc87917ffbbfc2efe3b853cc4ebf17ac, O_RDWR) failed: No such file or directory (2) in d:\apache\htdocs\default.php on line 2Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\apache\htdocs\default.php:2) in d:\apache\htdocs\default.php on line 2Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at d:\apache\htdocs\default.php:2) in d:\apache\htdocs\default.php on line 2
    请问该如何解决
      

  4.   

    配置 php.ini 中的session.save_path 为一个已经存在的目录,好存放session 文件
      

  5.   

    根据你使用的环境,建立TEMP文件夹,LINUX下设置路径为/TEMP WIN下设置为X:\...\TEMP