Solution to the problem that php cannot get the session value: 1. Add the statement "session_start();" before the "" sign; 2. Modify the content in "php.ini" to "session.auto_start= 1"; 3. Set the session save path.
Recommended: "PHP Video Tutorial"
A solution to the problem that php cannot obtain the session value
1. Check whether the sentence is before the mark. If not, please put it before the mark.
2. If after the above operation, "Warning: session_start() [function.session-start" message appears
Solution:
Modify the session in php.ini .auto_start = 0 is session.auto_start = 1
3. Have you set the session save path?
You need to modify the session.save_path = "C:/TMP" in php.ini, TMP file If the folder does not exist, create it.
The above is the detailed content of What to do if php cannot get the value of session. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
