当前位置:网站首页>[Private Series] All kinds of strange problems encountered in daily PHP
[Private Series] All kinds of strange problems encountered in daily PHP
2022-07-30 19:21:00 【Use the first name for the time being】
1. The session of the previous page cannot be obtained from the next page of php.
Process:
1. Generate a token, store it in the server session, and submit the token to the front-end page;
2. When the front-end submits the form, submit the token at the same time, and the session in the server is empty;
Possibilities:
The id of the session is stored in the front-end page cookie, but when submitted to the back-end, the id corresponding to the session disappears or an error occurs;
Solution:
Study for a day, hits and misses, may be good or bad in different browsers, just when it crashes, everything seems to be fine but then hangs again...
Later, it was speculated that security drills were being performed at that time. Once the session exceeded the number, it was cleared, so the session corresponding to the cookie disappeared. Of course, this speculation was extremely unreliable and failed properly...
Upgrading php to the latest version is still wrong...
Finally, tmd, it is normal to delete this sentence
session_set_cookie_params(0,NULL,NULL,TRUE); //cookies must use httponly
边栏推荐
猜你喜欢
What is the value of biomedical papers? How to translate the papers into Chinese and English?
nlohmann json 使用指南【visual studio 2022】
防抖和节流有什么区别,分别用于什么场景?
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
深入浅出边缘云 | 3. 资源配置
【PHPWord】Quick Start of PHPWord in PHPOffice Suite
开心的聚餐
OneFlow源码解析:Op、Kernel与解释器
Scrapy framework is introduced
kotlin by lazy
随机推荐
The large-scale application of artificial intelligence AI products in industrial-grade mature shipping ports of CIMC World Lianda will create a new generation of high-efficiency smart ports and innova
VBA批量将Excel数据导入Access数据库
Tensorflow2.0 confusion matrix does not match printing accuracy
MongoDB打破了原则引入SQL?
NXP IMX8QXP replacement DDR model operation process
Scrapy framework is introduced
【私人系列】日常PHP遇到的各种稀奇古怪的问题
OneFlow source code analysis: Op, Kernel and interpreter
How do radio waves transmit information?
Encapsulates a console file selector based on inquirer
VBA runtime error '-2147217900 (80040e14): Automation error
浅聊对比学习(Contrastive Learning)第一弹
kotlin的by lazy
VBA 运行时错误‘-2147217900(80040e14):自动化(Automation)错误
Scala学习:breakable
部分分类网络性能对比
Range.CopyFromRecordset 方法 (Excel)
MindSpore:数据处理问题
中集世联达飞瞳全球工业人工智能AI领军者,全球顶尖AI核心技术高泛化性高鲁棒性稀疏样本持续学习,工业级高性能成熟AI产品规模应用
经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法