欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


阿里云Storage 服务说明
阿里云PHP环境
阿里云Node.js环境
阿里云ACE的应用模板移植
阿里云ACE整体介绍
ubuntu12.04安装tftp、配置tftp服务错误
CentOS 6.4 最新安装教程
Putty使用简单教程
CentOS 6.2 安装教程
Ubuntu中配置Mysql编码方法
阿里云Session
【 来源:网络 】【 点击:1 】 【 发布时间:2017_03_03 08:59:59 】

   系统概要

  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

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号
淳安分站 淳安分站