当前位置:网站首页>Upgrade PHP to php7 The impact of X (I). The problem of session retention. Keep login
Upgrade PHP to php7 The impact of X (I). The problem of session retention. Keep login
2022-06-25 04:39:00 【zepcjsj0801】
Why can't I log in , The main reason is session
A recent project is going to use php7.x, But the company servers are 5.5 and 5.6 Of , Customer needs are above all else , Upgrade the server to 7.2 I won't be able to log in later , The reason is that the login status cannot be maintained .
Because wechat login is used , You can't see the debugging information intuitively , Only various terminals can be added , And write log text
Last and last , Hematemesis is session No normal write , This causes the second refresh of the page session non-existent .
by the way , Insert a sentence , This is the case for session Write to the database , If session It should be unaffected in the form of a file .
That is to use this function session_set_save_handler,( Although I have studied in a class , but phper But it belongs to a halfway monk , Forgive my poor words , I really don't know what the name of this form is , It doesn't affect the development and doesn't bother to check ), stay read At the end of the function ,5.x How many? return false,7.x requirement return ‘’, Cause unable to write session
Not much to say Upper figure , Those who often do project deduction code should be able to see which source code this is .

Read the article carefully , This problem has been solved in the middle of the night , Finally, I read the first article and solved it
边栏推荐
- GBASE 8s的多线程结构
- EasyRecovery15非常好用的电脑数据恢复软件
- PostgreSQL数据库WAL——RM_HEAP_ID日志记录动作
- 分布式websocket搭建方案
- GBASE 8s的包
- Detailed explanation of flex attributes in flex layout
- 什么是数据持久化?
- LabVIEW开发气体调节器
- Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
- Coordinate system left multiply right multiply
猜你喜欢
![[esp32 learning path 6 - Flash encryption]](/img/4c/f317ca4823dca50a9bccd285967ab0.png)
[esp32 learning path 6 - Flash encryption]

Gbase 8s overall architecture

Unit test coverage

Simple text analysis of malicious samples - Introduction

Value transfer between parent and child components of wechat applet

论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)

php开发支付宝支付功能之扫码支付流程图

CTF_ Web: Advanced questions of attack and defense world expert zone WP (15-18)

《牛客刷verilog》Part I Verilog快速入门

GBASE 8s 索引R树
随机推荐
[esp32 learning path 6 - Flash encryption]
Cnpm: unable to load file c:\users\administrator\appdata\roaming\npm\cnpm PS1 because running scripts is prohibited on this system.
Codeforces Round #802 (Div. 2) C D
JS call() and apply()
Structure syntaxique des procédures stockées gbase 8S
Laravel document sorting 10. Request life cycle
GBASE 8s存储过程语法结构
Deep learning - several types of learning
Laravel document sorting 8. Middleware
马斯克发布人形机器人,AI对马斯克为什么意义重大?
OOP栈类模板(模板+DS)
515. find the maximum value / Sword finger offer II 095 in each tree row Longest common subsequence
Office macro virus bounce shell experiment
GBASE 8s的数据视图
JS arguments
php开发支付宝支付功能之扫码支付流程图
Data import and export for gbase 8s
Laravel document sorting 6. Response
Detailed explanation of flex attributes in flex layout
jsz中的join()