Home >Backend Development >PHP Problem >How to find the save location of session in php
Introducing the storage location of session in php.
Open session. Use session_start () (recommended learning: PHP video tutorial)
View the session id, echo session_id();
View the local effect. The result of echo is the session id
View the directory where the session is saved. Find the php.ini file
Look for session.save_path in the php.ini file to get the location of the folder where the session is located.
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!