[原创]php session在php.ini的设置 |
[Session]
session.save_handler = files ; handler used to store/retrieve data
; 存储/读入数据用的句柄
session.save_path = C:/php4 ; argument passed to save_handler
; in the case of files, this is the
; path where data files are stored
; 用于存放句柄文件的路径(一定要设置正确,否则不能执行)
session.use_cookies = 1 ; whether to use cookies
; 是否使用 cookies
session.name = PHPSESSID
; name of the session
; 在 cookie 里 session 使用的名字
; is used as cookie name
session.auto_start = 0 ; initialize session on request startup
; 是否在请求开始时自动启动,初始化 session
session.cookie_lifetime = 0 ; lifetime in seconds of cookie
; or if 0, until browser is restarted
; 在 cookie 里面 session 存在的时间秒数,0 直到浏览器重新启动
session.cookie_path = / ; the path the cookie is valid for
; cookie 里存放数值的位置
session.cookie_domain = ; the domain the cookie is valid for
; 存放数值的 cookie的主机(主键)
session.serialize_handler = php ; handler used to serialize data
; php is the standard serializer of PHP
; 序列化数据的句柄,标准句柄是 php
session.gc_probability = 1 ; percentual probability that the
; 'garbage collection' process is started
; on every session initialization
; 打开每个session初始化时自动开始 垃圾收集进程
session.gc_maxlifetime = 1440 ; after this number of seconds, stored
; data will be seen as 'garbage' and
; cleaned up by the gc process
; 当超过这个时间,存储的的数据会被认为是垃圾,被 gc 进程清除
session.referer_check = ; check HTTP Referer to invalidate
; externally stored URLs containing ids
; 检查包含 ids 的 HTTP 里无效的外部保存 URLs的内容
session.entropy_length = 0 ; how many bytes to read from the file
; 从文件里读入的允许字节数
session.entropy_file = ; specified here to create the session id
; 指定在这里建立 session id
; session.entropy_length = 16
; session.entropy_file = /dev/urandom
session.cache_limiter = nocache ; set to {nocache,private,public} to
; determine HTTP caching aspects
; 确定 HTTP 缓存外貌 {nocache,private,public}
session.cache_expire = 180 ; document expires after n minutes
; 超过 n 分钟文档到期
|
|
|