isTokenValid
Return true if there is a transaction token stored in the user's current session, and the value submitted as a request parameter with this action matches it.resetToken
Reset the saved transaction token in the user's session.saveToken
Save a new transaction token in the user's current session, creating a new session if necessary.
Return true if there is a transaction token stored in the user's current session, and the value submitted as a request parameter with this action matches it.resetToken
Reset the saved transaction token in the user's session.saveToken
Save a new transaction token in the user's current session, creating a new session if necessary.
这样理解对不对
在数据读入.do未中加入saveToken(request)
在第二个.do的开始判断isTokenValid(request)如果有效继续否则丢出错误信息
最后resetToken(requet)注销token
你可以把信箱给我,我这里有收集的一个小例子
[email protected]谢谢