douci1677 2012-10-29 17:13
浏览 45

IE10,Iframe和PHP SESSION var

I have a form with a captcha on a web page, this captcha is using (as all capcha I think) SESSION variables to store the value. This form is working with IE7-8 and 9, also with FF, Chrome, Safari etc. but with IE10 I have a problem. If this form is directly called on the webpage of IE10 the captcha code works well, but if this form is called from an IFRAME of another website, SESSION variables are not stored. No way to use SESSION variables in this case.

Any idea ?

  • 写回答

3条回答 默认 最新

  • dswu26846 2012-10-29 17:15
    关注

    iframes are subject to their contents' originating site. Since you're loading the captcha/form from some other site, any cookies set in that frame are locked down to that other site.

    e.g. your site is example.com. the iframe comes from foobar.net. Any cookies set in the iframe are restricted to foobar.net and will not be available to example.com.

    评论

报告相同问题?

悬赏问题

  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探