自己写几个函数,把session保存到自定义的文件或是数据库中去。

解决方案 »

  1.   

    session.save_path = D:\temp或程序开始写:session_save_path="D:\temp";
      

  2.   

    session_save_path("路径");一般无须设置。自己设置反而增加了维护的开销
      

  3.   

    楼上说的对,我记错了,sorry,差点误人子弟,真不好意思!
      

  4.   

    和你的问题相关的帖子:http://expert.csdn.net/Expert/topic/2507/2507961.xml?temp=.7708399
    下面是手册里的http://www.phpe.net/manual/function.session-save-path.php-------------
    session_save_path
    (PHP 4 )session_save_path -- Get and/or set the current session save path
    Description
    string session_save_path ( [string path])
    session_save_path() returns the path of the current directory used to save session data. If path is specified, the path to which data is saved will be changed. session_save_path() needs to be called before session_start() for that purpose. 注: On some operating systems, you may want to specify a path on a filesystem that handles lots of small files efficiently. For example, on Linux, reiserfs may provide better performance than ext2fs. 
    See also the session.save_path configuration directive. 
      

  5.   


    session系列函数的作用我贴上来了,供大家参考若有不明白的地方请提出来在这里我们一起把SESSION的问题解决掉,session_decode: Session 资料解码。 
    session_destroy: 结束 session。 
    session_encode: Session 资料编码。 
                  (编码以 ZEND 引擎做杂凑编码。本函式没有参数。成功则传回 true 值。)
    session_id: 存取目前 session 代号。 
    session_is_registered: 检查变数是否注册。 
    session_module_name: 存取目前 session 模组。 
    session_name: 存取目前 session 名称。 
    session_register: 注册新的变量。 
    session_save_path: 存取目前 session 路径。 
    session_start: 初始 session。 
    session_unregister: 删除已注册变量。 
      

  6.   

    ini_set("session.save_path","新路径");