我的界面结构如下。
1  seo.aspx 页面
2 在seo.aspx 页面中使用  <iframe src="../xheditor/xheditor_plugins/multiupload/multiupload.html" width="100%" height="100%"></iframe>
打开新页面multiupload.html。
3然后我会吧multiupload.html 中的页面内容传递到 upload.aspx 中。。我在upload.aspx 中使用System.Web.HttpContext.Current.Session["UserName"]  取不到当前session 的值。里面没有任何值。在seo.aspx  中 Session["UserName"] 是有值的。

解决方案 »

  1.   

    session 在没有注销之前,在所有页面,是都能取到的
      

  2.   

     调试了。session 为空。什么都没有
      

  3.   

    不是为什么会有这个情况
    按道理来说是不可能的
    我不计是因为页面的缘故
    从你的保存session开始
    然后去别的页面取值   走一遍调试过程
    查看跟踪的值
      

  4.   

    你在global.ascx 里看下能不能获取 session值,如果可以,把原来的注销,在重新赋值
      

  5.   

    建议,用firefox的firebug插件或者下载httpwatch查看你的请求,因为session本身就是利用cookie传递了一个key给服务器,你查看请求的时候,仔细看看http头的cookie这个节里面,seo.aspx和multiupload.html,以及最后的upload.aspx是不是都包含了同一个key,如果在传递过程中丢失了,那么upload.aspx就会映射不到session