flex blazeds Detected duplicate HTTP-based FlexSessions错误

29 篇文章 0 订阅

第一种错误:

今天flex + blazeds遇到以下错误:

"Server.Processing.DuplicateSessionDetected"
  faultDetail = (null)
  faultString = "Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly."

刚遇到这样的问题 不知道是怎么一回事 上网google 百度了都没有找到解决方法

 

最后发现问题出现在 RemoteObject的endpoint上,在endpoint的url上多加了反鞋杠

如url本应该是这样的 

http://127.0.0.1/test/messagebroker/amf

但是写成了这样:

http://127.0.0.1//test/messagebroker/amf

就出现以上错误了

请仔细比较两个url有什么不同

http://127.0.0.1/test/messagebroker/amf

http://127.0.0.1//test/messagebroker/amf

 

问题是解决了 但是是什么原因 现在不清楚 也希望哪位大侠愿望解释下

 

第二种:

Duplicate HTTP-based FlexSession error: A request for FlexClient 'B17EC504-1A08-06AB-EB85-C6EEB3358DBC' arrived over a new FlexSession 'C7D55679A753A7754F26A0DC3A626853', but FlexClient is already associated with  FlexSession 'AB05860FDFED13D00EAEF5A76F91A4AE', therefore it cannot be associated with the new session.

由于使用了spring security, 它对Session有更行管理,对它进行一下配置就可以了

    <http entry-point-ref="entryPoint" auto-config="true">
        <anonymous enabled="false" />
        <session-management
            session-fixation-protection="migrateSession">
            <concurrency-control max-sessions="1" />
        </session-management>

    </http>

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值