What is the life cycle of session_PHP Tutorial

WBOY
Release: 2016-07-21 16:09:18
Original
1125 people have browsed it


What is the life cycle of session? 1 When the browser ends, its life cycle also ends, but the file still exists in /tmp/(sess_???)
2 The session ID will be reassigned the next time you reopen the browser. If you use session_id() to replace the previous Bring back the ID, it will read the remaining sess_??? at /tmp, and retrieve all the parameters you have set before
3 You can modify the remaining time of the session file in php.ini

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

The default is 1440 seconds, 24 minutes

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/314553.htmlTechArticleWhat is the life cycle of a session? 1 When the browser ends, its life cycle also ends, but the file still exists in /tmp/(sess_???) 2 sessio will be redistributed the next time you reopen the browser...
Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!