session 的生命周期是多长
Jun 13, 2016 pm 12:44 PM
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分钟

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

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.

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

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

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

gate.io sesame door download Chinese tutorial
