当前位置:网站首页>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
边栏推荐
猜你喜欢

关于TCP连接四次握手(或者叫四次挥手)的详细总结

What is the storage engine and the three common database storage engines for MySQL

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

Code scanning payment flow chart of Alipay payment function developed by PHP

Laravel document sorting 4. Controller

GBASE 8s 索引B+树

小白学习MySQL - 统计的'投机取巧'

Finereport (sail soft) handling the problem that the histogram data label is blocked

Part I Verilog quick start

Vscode 设置clang-format
随机推荐
关于TCP连接三次握手的详细总结
GBASE 8s的隔离级别介绍
Gbase 8s stored procedure flow control
2.0springmvc uses restful
冰冰学习笔记:循环队列的实现
JS' sort() function
Vscode 设置clang-format
Mongodb cluster
Gbase 8s index b+ tree
PHP encapsulates curl to send get and post request methods, and uses
如何筛选出和产品相关的词,精准排除掉无效词
Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'
CTF_ Web: deserialization learning notes (I) classes and objects in PHP
Laravel document sorting 11. System architecture
Use text analysis to identify the main gender in a text
分布式websocket搭建方案
Retrofit source code analysis
Code scanning payment flow chart of Alipay payment function developed by PHP
PostgreSQL数据库WAL——RM_HEAP_ID日志记录动作
GBASE 8s的多线程结构