duanjiong5686 2011-06-06 01:18
浏览 94
已采纳

使用数据库时的PHP session.save_path

I've just moved to storing my sessions in a database. My PHP code uses session_set_save_handler() to supply the required functions and all seems to be ok. But do I need to change my php.ini as well? For example, session.save_handler still has the value of "files". Also, do I still need to make sure that session.save_path points to a valid directory?

Thanks, Brian

  • 写回答

1条回答 默认 最新

  • dongque1462 2011-06-06 01:57
    关注

    If you use session_set_save_handler(), then no, you don't need to specify session.save_path

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?