What to do if linux php session is lost

藏色散人
Release: 2023-03-12 20:24:01
Original
1515 people have browsed it

Solution to Linux php session loss: 1. Find and open the php.ini file; 2. Modify "session.save_path" to "session.save_path = "/usr/local/php/tmp/session /"".

What to do if linux php session is lost

The operating environment of this article: linux5.9.8 system, PHP version 7.1, Dell G3 computer.

What should I do if the linux php session is lost?

php cannot get the session under linux

Modify php.ini

vim /usr/local/php/etc/php.ini
Copy after login

will Modify session.save_path to session.save_path = "/usr/local/php/tmp/session/" Set the following path yourself

Then set the following path user group to your own corresponding user group.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What to do if linux php session is lost. For more information, please follow other related articles on the PHP Chinese website!

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