Home > Article > Backend Development > What to do if linux php session is lost
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 /"".
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!