开发者

PHP session.save_path when using database

开发者 https://www.devze.com 2023-03-11 02:22 出处:网络
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

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 e开发者_C百科xample, 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消