Home  >  Article  >  Backend Development  >  What to do if linux php session is lost

What to do if linux php session is lost

藏色散人
藏色散人Original
2021-09-22 10:42:051512browse

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

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!

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