【发布时间】:2018-02-06 01:38:03
【问题描述】:
在 Play 2.3.x 的 documentation 中:
当然,cookie 值是使用密钥签名的,因此客户端无法修改 cookie 数据(否则会失效)。
我很想知道 Play 如何验证签名 cookie。所以按照代码,cookies是parsed from the header和decoded in the Cookie helper但是当我查看requestcookieheader时数据没有签名?
At this line 表达式 cookieHeader 的计算结果为:sessionId=72312312312369; Path=/; HTTPOnly
该值不应该还包含可以使用应用程序机密验证的签名值吗?
【问题讨论】:
标签: cookies playframework session-cookies digital-signature playframework-2.3