php的功能session_module_name是什么? [英] What exactly php's function session_module_name is for?
问题描述
session_module_name - 获取和/或设置当前会话模块
没有什么是会话模块,什么选项可用,何时使用。谁知道? :)
session_module_name定义会话的存储方式。您可以结合使用session_set_save_handler来手动处理会话,例如,如果要从数据库保存/加载会话。快速搜索显示至少有3个模块
<?php
session_module_name(files); // ASCII文件
session_module_name(mm); // Shared memory
session_module_name(user); //自定义会话后端
?>
也许还有更多。如果session_module_name文档条目更有帮助,那将是很好的。
PHP Session related functions have this one: session_module_name. Documentation is castrated, and all it tells:
session_module_name — Get and/or set the current session module
Nothing about what are session modules, what options available and when it to use. Who knows? :)
The session_module_name defines how sessions are stored. You can use this in conjunction with session_set_save_handler to handle sessions manually, such as if you wanted to save/load sessions from a database. A quick search shows that there are at least 3 modules
<?php
session_module_name("files"); // ASCII files
session_module_name("mm"); // Shared memory
session_module_name("user"); // Custom session backend
?>
Perhaps there are more. It would be nice if the session_module_name docs entry was a bit more helpful.
这篇关于php的功能session_module_name是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!