Home
Sign Up
Sign In
V2EX
›
V2EX
V2EX 源码中的 once 是干什么用的
markme
·
Aug 8, 2016
· 4224 views
This topic created in 3742 days ago, the information mentioned may be changed or developed.
最近继续在研究 livid 大神的代码,不明白的是
once
这个字段是干什么用的,什么原理?
参考,主题回复的时候,提交的时候就有这个数据,在其他地方也有,并且有时候是变化的。
谢谢~
once
干什么
字段
V2EX
4 replies
•
2016-08-09 01:11:00 +08:00
shiny
PRO
Aug 8, 2016
1
估计是防 CSRF 攻击吧。
Senorsen
Aug 8, 2016
2
ls+1, csrf token
markme
OP
Aug 8, 2016
3
@
shiny
@
Senorsen
谢谢两位
SoloCompany
Aug 9, 2016
4
其实用的一般比较多的名字是 nonce
https://zh.wikipedia.org/wiki/Nonce
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
4891 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms ·
UTC 08:53
·
PVG 16:53
·
LAX 00:53
·
JFK 03:53
♥ Do have faith in what you're doing.
❯