Home >Backend Development >PHP Problem >How to find the save location of session in php

How to find the save location of session in php

(*-*)浩
(*-*)浩Original
2019-09-05 10:28:247718browse

Introducing the storage location of session in php.

How to find the save location of session in php

Open session. Use session_start () (recommended learning: PHP video tutorial)

How to find the save location of session in php

View the session id, echo session_id();

How to find the save location of session in php

View the local effect. The result of echo is the session id

How to find the save location of session in phpView the directory where the session is saved. Find the php.ini file

How to find the save location of session in phpLook for session.save_path in the php.ini file to get the location of the folder where the session is located.

How to find the save location of session in php

Recommended related articles:The most comprehensive collection of js interview questions in 2020 (latest)

The above is the detailed content of How to find the save location of session in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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