PHP 老是timeout,PHP SessionTimeOut的有关问题(2)

当前位置:我的异常网» PHP » PHP SessionTimeOut的有关问题

PHP SessionTimeOut的有关问题(2)

www.myexceptions.net  网友分享于:2015-08-26  浏览:32次

session.cookie_lifetime   =   50

;   The   path   for   which   the   cookie   is   valid.

session.cookie_path   =   /

;   The   domain   for   which   the   cookie   is   valid.

session.cookie_domain   =

;   Whether   or   not   to   add   the   httpOnly   flag   to   the   cookie,   which   makes   it   inaccessible   to   browser   scripting   languages   such   as

JavaScript.

session.cookie_httponly   =

;   Handler   used   to   serialize   data.     php   is   the   standard   serializer   of   PHP.

session.serialize_handler   =   php

;   Define   the   probability   that   the   'garbage   collection '   process   is   started

;   on   every   session   initialization.

;   The   probability   is   calculated   by   using   gc_probability/gc_divisor,

;   e.g.   1/100   means   there   is   a   1%   chance   that   the   GC   process   starts

;   on   each   request.

session.gc_probability   =   1

session.gc_divisor           =   1

;   After   this   number   of   seconds,   stored   data   will   be   seen   as   'garbage '   and

;   cleaned   up   by   the   garbage   collection   process.

session.gc_maxlifetime   =   50

;   NOTE:   If   you   are   using   the   subdirectory   option   for   storing   session   files

;               (see   session.save_path   above),   then   garbage   collection   does   *not*

;               happen   automatically.     You   will   need   to   do   your   own   garbage

;               collection   through   a   shell   script,   cron   entry,   or   some   other   method.

;               For   example,   the   following   script   would   is   the   equivalent   of

;               setting   session.gc_maxlifetime   to   1440   (1440   seconds   =   24   minutes):

;                     cd   /path/to/sessions;   find   -cmin   +24   |   xargs   rm

;   PHP   4.2   and   less   have   an   undocumented   feature/bug   that   allows   you   to

;   to   initialize   a   session   variable   in   the   global   scope,   albeit   register_globals

;   is   disabled.     PHP   4.3   and   later   will   warn   you,   if   this   feature   is   used.

;   You   can   disable   the   feature   and   the   warning   separately.   At   this   time,

;   the   warning   is   only   displayed,   if   bug_compat_42   is   enabled.

文章评论

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值