当前位置:网站首页>[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 边栏推荐
- LeetCode 0952.按公因数计算最大组件大小:建图 / 并查集
- 已删除
- LocalDate时间生成
- CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri
- 在华为云,见证迷你世界的神奇觉醒
- AWS console
- 部分分类网络性能对比
- Critical Reviews | A review of the global distribution of antibiotics and resistance genes in farmland soil by Nannong Zou Jianwen's group
- Google's AlphaFold claims to have predicted almost every protein structure on Earth
- VS Code 连接SQL Server
猜你喜欢

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

MindSpore:【JupyterLab】查看数据时报错
![[Summary] 1396- 60+ VSCode plugins to create a useful editor](/img/e4/65e55d0e4948c011585b72733d4d19.jpg)
[Summary] 1396- 60+ VSCode plugins to create a useful editor

Talking about Contrastive Learning (Contrastive Learning) the first bullet

Encapsulates a console file selector based on inquirer

来了!东方甄选为龙江农产品直播带货

VBA batch import Excel data into Access database

Basic use of scrapy

MindSpore:ImageFolderDataset数据读取问题

【hbuilder】运行不了部分项目 , 打开终端 无法输入指令
随机推荐
Does the satellite phone communicate directly with the satellite or through a ground station?
How architects grow
OneFlow源码解析:Op、Kernel与解释器
还有三天忙完
MySql中@符号的使用
什么是 RESTful API?
VS Code connects to SQL Server
MindSpore:【JupyterLab】查看数据时报错
牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)
第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结
阿里云武林头条活动分享
C# wpf 无边框窗口添加阴影效果
牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
MindSpore:Cifar10Dataset‘s num_workers=8, this value is not within the required range of [1, cpu_thr
What is the difference between a cloud database and an on-premises database?
Swiper轮播图片并播放背景音乐
Mysql execution principle analysis
【每日一道LeetCode】——191. 位1的个数
Chapter 4 Controlling the Execution Flow
Scala学习:类和对象