当前位置:网站首页>[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 边栏推荐
- Anaconda Navigator stuck on loading applications
- 7.29模拟赛总结
- 【每日一道LeetCode】——191. 位1的个数
- 还有三天忙完
- 【刷题篇】计算质数
- ImportError:attempted relative import with no known parent package
- Does the satellite phone communicate directly with the satellite or through a ground station?
- 经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法
- 中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
- Recommendation | People who are kind to you, don't repay them by inviting them to eat
猜你喜欢

2种手绘风格效果比较,你更喜欢哪一种呢?

MindSpore:【MindSpore1.1】Mindspore安装后验证出现cudaSetDevice failed错误

VS Code 连接SQL Server

redis

【剑指 Offer】剑指 Offer 22. 链表中倒数第k个节点

【每日一道LeetCode】——191. 位1的个数

【Swords Offer】Swords Offer 17. Print n digits from 1 to the largest

JS提升:Promise中reject与then之间的关系

【网站放大镜效果】两种方式实现

iPhone真是十三香?两代产品完全对比,或许上一代更值得买
随机推荐
自己需要努力
kotlin的by lazy
The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
Swiper rotates pictures and plays background music
NC | Tao Liang Group of West Lake University - TMPRSS2 "assists" virus infection and mediates the host invasion of Clostridium sothrix hemorrhagic toxin...
Difference between Object and Map
中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
解决终极bug,项目最终能顺利部署上线。
Read the "Language Model" in one article
- daily a LeetCode 】 【 191. A number of 1
MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?
MindSpore:【模型训练】【mindinsight】timeline的时间和实际用时相差很远
NXP IMX8QXP更换DDR型号操作流程
AI Basics: Graphical Transformer
生物医学论文有何价值 论文中译英怎样翻译效果好
Win11如何更改默认下载路径?Win11更改默认下载路径的方法
The problem of writing go run in crontab does not execute
055 c# print
不同的路径依赖
【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list