您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息

本地php虚拟环境如何修改session时间

2024/5/5 5:22:06发布7次查看
本地php虚拟环境怎么修改session时间
本地php虚拟环境怎么修改session时间
我在本地安装了zencart网店系统,但用户登录时间实在太太短了,不一会就自动退出,请问本地php环境怎么修改session时间
------解决方案--------------------
php.ini
------解决方案--------------------
1463 ; lifetime in seconds of cookie or, if 0, until browser is restarted.
1464 ; http://php.net/session.cookie-lifetime
1465 session.cookie_lifetime = 0
1483 ; defines the probability that the 'garbage collection' process is started
1484 ; on every session initialization. the probability is calculated by using
1485 ; gc_probability/gc_divisor. where session.gc_probability is the numerator
1486 ; and gc_divisor is the denominator in the equation. setting this value to 1
1487 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1488 ; the gc will run on any give request.
1489 ; default value: 1
1490 ; development value: 1
1491 ; production value: 1
1492 ; http://php.net/session.gc-probability
1493 session.gc_probability = 1
1494 
1495 ; defines the probability that the 'garbage collection' process is started on every
1496 ; session initialization. the probability is calculated by using the following equation:
1497 ; gc_probability/gc_divisor. where session.gc_probability is the numerator and
1498 ; session.gc_divisor is the denominator in the equation. setting this value to 1
1499 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
1500 ; the gc will run on any give request. increasing this value to 1000 will give you
1501 ; a 0.1% chance the gc will run on any give request. for high volume production servers,
1502 ; this is a more efficient approach.
1503 ; default value: 100
1504 ; development value: 1000
1505 ; production value: 1000
1506 ; http://php.net/session.gc-divisor
1507 session.gc_divisor = 1000
1508 
1509 ; after this number of seconds, stored data will be seen as 'garbage' and
1510 ; cleaned up by the garbage collection process.
1511 ; http://php.net/session.gc-maxlifetime
1512 session.gc_maxlifetime = 1440
看一下说明,都配合一起设置一下。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录