Local php virtual environment how to modify the session time local php virtual environment how to modify the session time I locally installed zencart online shop system, but the user login time is really short, and will automatically exit in a short time, how can I modify the session time in the local php environment? php. ini, 1463; Lif how to modify the session time in the local php virtual environment
How to modify the session time in the local php virtual environment
I have installed the zencart online shop system locally, but the user login time is really short, and will automatically exit in a short time. how can I modify the session time in the local php environment?
------ Solution --------------------
Php. ini
------ Solution --------------------
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 'bucket collect' 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 'bucket collect' 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
Let's take a look at the instructions and set them together.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.