首 页   · 站长博客 · 用户注册 · 会员登陆  · 会员排行  ·最新主题  ·最近回复  精华区  版权声明  ·论坛管理
  当前登录身份:游客,请先登录。  笔名: 口令: 验证码:   
楼 主  index »  PHP相关资源下载区 » [原创]php session在php.ini的设置  


  作者:lilihao
  注册时间:2004-06-01
  主题/回复:7/3
  积分:538
  等级:★★☆(五级)
  称号:略有小成

  lyfa1688@tom.com..
  未提供
  www.

 

 发表:2004-06-01 18:42:46 阅读 2357 次 回复 1 次 得分2  |   字号 字色
[原创]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 分钟文档到期 

 
 1#楼  
 
  回复人:一起PHP
  注册时间:2004-02-27
  主题/回复:247/1521
  积分:4649
  等级:★★★★★☆(十一级)
  称号:论坛圣人

   
 1#楼 发表于2004-06-02 06:50:25  评分:2 

与此贴有关的回复已经发表在
http://www.17php.com/bbs/show_title.php?id=171
  页数1/1首页 « 1 » 末页
  发表回复:您还没有登陆,无法发表回复。请先[登陆]

一起PHP技术联盟 主办:一起PHP 联系方式:站长QQ:4304410 QQ群:8423742 20159565 站长博客 E-mail: nqp@nqp.me 执行时间:0.006sec
SimsmaBBS 2008 (v6.0) Developed by 17php.com,Copyright(C)2003-2010 All rights reserved. 副本授权:一起PHP官方专用版