当前位置:网站首页>[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 边栏推荐
- natural language processing nltk
- 【MindSpore】用coco2017训练Model_zoo上的 yolov4,迭代了两千多batch_size之后报错,大佬们帮忙看看。
- Spark学习:编译Spark项目时遇到的报错
- MindSpore:数据处理问题
- WEBSOCKETPP使用简介+demo
- 【私人系列】日常PHP遇到的各种稀奇古怪的问题
- 开心的聚餐
- - daily a LeetCode 】 【 191. A number of 1
- Google's AlphaFold claims to have predicted almost every protein structure on Earth
- How architects grow
猜你喜欢

The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)

【MindSpore】用coco2017训练Model_zoo上的 yolov4,迭代了两千多batch_size之后报错,大佬们帮忙看看。

C# wpf borderless window add shadow effect

【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list

VBA批量将Excel数据导入Access数据库

【MindSpore】多卡训练保存权重问题

防抖和节流有什么区别,分别用于什么场景?

VS Code 连接SQL Server

已删除

VBA 连接Access数据库和Excle
随机推荐
How architects grow
电脑死机的时候,发生了什么?
Win11如何更改默认下载路径?Win11更改默认下载路径的方法
055 c# print
Perfectly Clear QuickDesk & QuickServer图像校正优化工具
ResNet18-实现图像分类
MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
NC | Tao Liang Group of West Lake University - TMPRSS2 "assists" virus infection and mediates the host invasion of Clostridium sothrix hemorrhagic toxin...
2种手绘风格效果比较,你更喜欢哪一种呢?
Go system collection
MindSpore:对image作normalize的目的是什么?
第14章 类型信息
牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
Multiple instances of mysql
【PHPWord】Quick Start of PHPWord in PHPOffice Suite
Listen to the boot broadcast
延时队列优化 (2)
Range.CopyFromRecordset 方法 (Excel)
生物医学论文有何价值 论文中译英怎样翻译效果好
防抖和节流有什么区别,分别用于什么场景?