【问题标题】:Spring Webflow FlowScope gets emptySpring Webflow FlowScope 变空
【发布时间】:2015-05-19 17:47:24
【问题描述】:

我在 CAS 服务器上工作,如果我们有超过 3 次失败的登录尝试,则非常需要第四次必须有验证码。为了完成这个过程,我使用了

context.getFlowScope().put("count", count);

其中,count 变量计算失败尝试的次数。 使用 Google Chrome 可以正常工作,但使用 Mozilla FireFox,在第二次尝试后,令人惊讶的是 count 变量再次变为零。

【问题讨论】:

    标签: spring spring-security spring-webflow cas spring-webflow-2


    【解决方案1】:

    将 count 变量放在会话中。请参阅以下示例

    Spring webflow - how to pass the session in evaluate expression?

    【讨论】:

    • 非常感谢。现在我又可以呼吸了。 :)
    猜你喜欢
    • 1970-01-01
    • 2014-04-23
    • 2013-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-24
    相关资源
    最近更新 更多