Home php教程 php手册 session 的生命周期是多长

session 的生命周期是多长

Jun 13, 2016 pm 12:44 PM
session but cycle yes Browser of Finish


session 的生命周期是多长 1 浏览器结束时其生命周期也同时结束,但是档案仍然存在于 /tmp/(sess_???)
2 下次重新开浏览器时会重新分配 sessionID,如果你使用 session_id() 把以前的 ID 带回来,则会去读取残存在 /tmp 处的 sess_???, 取回你之前所有已经设定的参数
3 可以在 php.ini 里修改 session 档案残存的时间

session.gc_maxlifetime = 1440 ; after this number of seconds, stored
; data will be seen as \'garbage\' and
; cleaned up by the gc process

默认是 1440 秒,24分钟

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to set the browser to start automatically when booting? How to automatically open the browser when Win11 is started? How to set the browser to start automatically when booting? How to automatically open the browser when Win11 is started? Jun 12, 2024 pm 07:58 PM

How to set the browser to start automatically when booting? How to automatically open the browser when Win11 is started?

Use your mobile phone to type 'Black Myth: Wukong '? I can play it in actual testing, but I don't recommend it. Use your mobile phone to type 'Black Myth: Wukong '? I can play it in actual testing, but I don't recommend it. Aug 23, 2024 pm 09:44 PM

Use your mobile phone to type 'Black Myth: Wukong '? I can play it in actual testing, but I don't recommend it.

Steps to solve the problem that the win7 system browser always automatically pops up the web page Steps to solve the problem that the win7 system browser always automatically pops up the web page Mar 26, 2024 pm 09:30 PM

Steps to solve the problem that the win7 system browser always automatically pops up the web page

Clear the Google Chrome registry and clean up the remaining residue from uninstalling Google Chrome Clear the Google Chrome registry and clean up the remaining residue from uninstalling Google Chrome Jun 19, 2024 am 11:09 AM

Clear the Google Chrome registry and clean up the remaining residue from uninstalling Google Chrome

Sesame Open Door Official Website Sesame Open Door App Latest Entering Website Sesame Open Door Official Website Sesame Open Door App Latest Entering Website Feb 28, 2025 am 11:18 AM

Sesame Open Door Official Website Sesame Open Door App Latest Entering Website

The latest version of Sesame Open Door Official Website Entrance gate.io Official Website Link Address Entrance The latest version of Sesame Open Door Official Website Entrance gate.io Official Website Link Address Entrance Feb 28, 2025 am 11:21 AM

The latest version of Sesame Open Door Official Website Entrance gate.io Official Website Link Address Entrance

Reasons and solutions for slow browser network speeds (exploring the reasons for slow browser network speeds) Reasons and solutions for slow browser network speeds (exploring the reasons for slow browser network speeds) Apr 25, 2024 pm 03:49 PM

Reasons and solutions for slow browser network speeds (exploring the reasons for slow browser network speeds)

gate.io sesame door download Chinese tutorial gate.io sesame door download Chinese tutorial Feb 28, 2025 am 10:54 AM

gate.io sesame door download Chinese tutorial

See all articles