This paper analyzes the reasons of repeating submission of web form in B/S structure applica- tions, and in-depth study of core working principle and application process of synchronous token. It solves this problem through making the web form to avoid repeating submission through bringing the synchronous tokens through initializing token, checking the token, destroying token. Also, its implementation process was analyzed and elaborated.%本文分析了B/S结构的应用系统中表单重复提交的原因,并在深入研究同步令牌核心工作原理和应用过程的基础上,将同步令牌的机制用于解决表单重复提交的问题,让需要避免重复提交的页面在每次提交页面时携带同步令牌,通过初始化令牌、校验令牌、销毁令牌等步骤,解决了表单重复提交的问题.并对其实现的过程进行了分析和阐述.
展开▼