chigco
V2EX  ›  问与答

IE8 与 session

  •  
  •   chigco · Jan 29, 2015 · 2319 views
    This topic created in 4131 days ago, the information mentioned may be changed or developed.
    tomcat 6
    使用ie8访问,后台是springmvc
    通过上下文获取sessionid。ie前台每次刷新都是一个新的id!!!求解。
    chrome,firefox都没这个问题。
    Supplement 1  ·  Jan 29, 2015
    发现问题了。
    做的这个东西是给别人使用iframe加载的。

    在使用同一个浏览器(ie8)的情况下:
    比如对方http://www.xxx.com/a.html 直接 iframe url -> http://ip:port (项目地址)
    结果在对方http://www.xxx.com/a.html页面中只要一刷新页面,我的项目取的sessionId就一直变化。
    然而,我如果自己打开 http://ip:port (项目地址) 无论怎么刷新,都是同一个sessionId。
    3 replies    2015-01-29 14:47:35 +08:00
    zhangchioulin
        1
    zhangchioulin  
       Jan 29, 2015
    struts+MVC的绑定了
    timonwong
        2
    timonwong  
       Jan 29, 2015
    我只模糊的记得IE8会在popup window里面丢 session cookie
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3051 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 02:41 · PVG 10:41 · LAX 19:41 · JFK 22:41
    ♥ Do have faith in what you're doing.