Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Php does not have a solution returned by session

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about php no session return solution, Xiaobian feel quite practical, so share to everyone as a reference, I hope you can read this article after harvest.

Php does not have a session return solution: 1, put the session_start before the flag;2, modify the contents of php.ini to "session.auto_start =1";3, set the session save path.

Operating environment: Windows 7 system, PHP 7.4 version, Dell G3 computer.

Php cannot get session value as a solution:

1. Make sure this sentence comes before the sign. If not, please put it before the sign.

2. If after the above operation, the message "Warning: session_start() [function.session-start" appears

Solution:

Change session.auto_start = 0 to session.auto_start = 1 in php.ini

3. Have you set the session save path?

You need to modify session.save_path = "C:/TMP" in php.ini, if there is no TMP folder, create it.

About "php no session return solution" This article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report