当前位置:网站首页>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
边栏推荐
- OOP栈类模板(模板+DS)
- Gbase 8s parallel operation problem scenario description
- Gbase 8s index b+ tree
- CTF_ Web: Advanced questions of attack and defense world expert zone WP (15-18)
- GBASE 8s 总体架构
- [esp32 learning path 6 - Flash encryption]
- What is data persistence?
- 记录小知识点
- Should I use on or where for the left join
- Structure syntaxique des procédures stockées gbase 8S
猜你喜欢
随机推荐
[esp32 learning path 6 - Flash encryption]
Laravel document sorting 6. Response
GBase 8s的封锁技术的基本介绍
Le chemin de l'apprentissage immutable - - Adieu à la copie traditionnelle
halcon之区域:多种区域(Region)生成(3)
GBASE 8s的数据视图
Synchronous and asynchronous functions (callback function, promise, generator, async/await)
Retrofit 源码分析
Laravel document sorting 10. Request life cycle
Codeforces Round #802 (Div. 2) C D
GBASE 8s存储过程语法结构
分布式websocket搭建方案
Gbase 8s memory management
OOP 向量加减(友元+拷贝构造)
Laravel document sorting 11. System architecture
GBASE 8s的并行操作问题场景描述
如何筛选出和产品相关的词,精准排除掉无效词
什么是持久化?redis 持久化中的RDB和AOF是什么?
机器学习深度学习——向量化
A detailed summary of four handshakes (or four waves) over TCP connections








