时间:2023-06-02 16:16:41 来源: 人气:
系统概要, session的内容保持在memcache中可以保持服务的可伸缩性并保证较快的访问速度。, 使用指南, session相关函数整理, 由于php.ini文件由CE平台提供,所以相关项的设置函数禁用:, session_cache_expire — Return current cache expire 返回当前缓存过期, session_cache_limiter — Get and/or set the current cache limiter 获取/设置当前缓存限制, session_get_cookie_params — Get the session cookie parameters 获取会话cookie参数, session_set_cookie_params — Set the session cookie parameters 设置会话cookie参数, 由平台提供的服务,不需用户操心的函数也禁用:, session_save_path — Get and/or set the current session save path 获取/保存 路径设置当前会话, session_set_save_handler — Sets user-level session storage functions 设置用户级别会议存储功能, session_module_name — Get and/or set the current session module 获取/设置 当前会话模块, PHP5.3后弃用的函数:, session_is_registered — Find out whether a global variable is registered in a session 查找是否一个全局变量是在一个会话中注册, session_register — Register one or more global variables with the current session 注册一个或多个全局变量与当前会话, session_unregister — Unregister a global variable from the current session 从当前会话注销全局变量, 最终保留的函数:, session_start — Initialize session data 初始化会话数据, session_unset — Free all session variables 释放所有会话变量, session_destroy — Destroys all data registered to a session 销毁注册某个会话的所有数据, session_write_close — Write session data and end session 写会话数据和结束会话, session_commit — Alias of session_write_close 对session_write_close的别名, session_decode — Decodes session data from a string 从一个字符串解码会话数据, session_encode — Encodes the current session data as a string 当前会话数据编码为一个字符串, session_id — Get and/or set the current session id 获取/设置当前会话ID, session_regenerate_id — Update the current session id with a newly generated one 更新一个新生成的的当前会话ID, session_name — Get and/or set the current session name 获取/设置 当前会话的名称, 更多细节请参考:http://www.php.net/manual/en/ref.session.php,