Home > Backend Development > PHP Tutorial > Session mechanism, session_PHP tutorial

Session mechanism, session_PHP tutorial

WBOY
Release: 2016-07-13 10:20:47
Original
859 people have browsed it

Session mechanism, session

When the server creates a session (session_start()), the server will create a session file in the specified folder of the server with the name sessionID and treat it as The cookie value is sent to the browser. Every time the browser accesses the server, it will carry this cookie, and the server will recognize the changed session ID and find the corresponding session file. This file contains several key-value pairs. The folder where the session file is stored can be modified in the configuration files php and ini.

For the session mechanism

Session is a built-in object, it has been implemented, you can just use it
Why do you want to implement it? Are you very free?

For session mechanism

Session is a built-in object, it has been implemented, you can just use it
Why do you want to implement it? Are you very free?

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/865972.htmlTechArticleSession mechanism, session When the server creates a session (session_start()), the server will specify the file in the server Create a session file under the folder with the name sessionID,...
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