WebForm没有请求哪儿来响应?必须在页面中去做,根据另外一个会话的SessionID 向对应的Session对象写数据

解决方案 »

  1.   

    not possible, unless you want to write your own session management system or use Application or Cache variables with SessionID as keys
      

  2.   

    Session的定义本来就是互相独立的
      

  3.   

    once new session created, new sessionid produced,so you can not operate former session
      

  4.   

    看来只能自己写个Session management 把数据放在application 中!
    随便问saucer(思归) 如果服务器端Session =null 是不是客户端的http请求数据不完整
    因为请求方是ie 内嵌入的OCX 向WebServer 直接发出请求的。
    如果知道Session ID 是否可以模拟这个Session 向WebServer发出请求?
      

  5.   

    >>>如果服务器端Session =null 是不是客户端的http请求数据不完整no, a new session will be created if you have enabled Session>>>如果知道Session ID 是否可以模拟这个Session 向WebServer发出请求?yes, if you pass back the original cookie
      

  6.   

    但事实上确是OCX 的http 请求Session=null,也就是说这时服务器端没法用Session 对象!
    没法解释这个现象!
    猜测是这个OCX 的http 请求数据不完整,比如没包含cookie 信息 或是被认为是不支持cookie 或是disabled session !
    有没有http请求的数据格式,比如我要做一个exe程序访问WebServer 要怎么去组织请求数据?
      

  7.   

    我看了讨论,我也晕了,在asp.net中单页面中不是可以用viewstate来存储数据,多页面中可以用session,实现不行了,可以在web.config中设置 cookieless为true,这样可以保存在http路径中了。但愿对你有所帮助。