![]() |
MSXML.XMLHTTP / ASP Page / Session
Hello,
I'm using the MSXML.XMLHTTP object to obtain the results of an ASP page from an ASP page on the same server. The problem I have is that when the AP refrenced by the XMLHTTP object is run it does now share the session with the calling page ? How can I solve this ? Any ideas ? Many thanks... Martin |
Re: MSXML.XMLHTTP / ASP Page / Session
The XMLHttp component is now the "client" for your ASP page, and not the
browser. One way to get around is to retrieve the ASPSESSIONID cookie from the browser, and set it in your code for the XMLhttp component. This way, both browser and the XMLHttp component are using the same ASSPSESSIONID cookie to talk to the ASP pages, and hence maintain the session. -- Manohar Kamath Editor, .netWire www.dotnetwire.com "Martin Waller" <Martin.Waller@NOSPAN.com> wrote in message news:OPKVyp6rEHA.2776@TK2MSFTNGP14.phx.gbl... > Hello, > > I'm using the MSXML.XMLHTTP object to obtain the results of an ASP page from > an ASP page on the same server. The problem I have is that when the AP > refrenced by the XMLHTTP object is run it does now share the session with > the calling page ? How can I solve this ? > > Any ideas ? > > Many thanks... > > Martin > > |
Re: MSXML.XMLHTTP / ASP Page / Session
I'm having the same problem... where do you set the aspsessionid to the
xmlhttp obj? right before the send? and what property do you set.. i couldnt find a object model anywhere =/ Manohar Kamath wrote: > The XMLHttp component is now the "client" for your ASP page, and not the > browser. > > One way to get around is to retrieve the ASPSESSIONID cookie from the > browser, and set it in your code for the XMLhttp component. This way, both > browser and the XMLHttp component are using the same ASSPSESSIONID cookie to > talk to the ASP pages, and hence maintain the session. > |
Re: MSXML.XMLHTTP / ASP Page / Session
I'm having the same problem... where do you set the aspsessionid to the
xmlhttp obj? right before the send? and what property do you set.. i couldnt find a object model anywhere =/ Manohar Kamath wrote: > The XMLHttp component is now the "client" for your ASP page, and not the > browser. > > One way to get around is to retrieve the ASPSESSIONID cookie from the > browser, and set it in your code for the XMLhttp component. This way, both > browser and the XMLHttp component are using the same ASSPSESSIONID cookie to > talk to the ASP pages, and hence maintain the session. > |
Re: MSXML.XMLHTTP / ASP Page / Session
You should be able to do that with the
setRequestHeader method something like this (not tested, just from docs) ck = Request.ServerVariables("HTTP_COOKIE") set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") xmlhttp.open "GET", url, false xmlhttp.setRequestHeader "Cookie",ck xmlhttp.send "" -- --Mark Schupp Head of Development Integrity eLearning www.ielearning.com <chrisgeorgeoliver@gmail.com> wrote in message news:1110553432.153577.210390@f14g2000cwb.googlegr oups.com... > I'm having the same problem... where do you set the aspsessionid to the > xmlhttp obj? right before the send? and what property do you set.. i > couldnt find a object model anywhere =/ > > Manohar Kamath wrote: >> The XMLHttp component is now the "client" for your ASP page, and not > the >> browser. >> >> One way to get around is to retrieve the ASPSESSIONID cookie from the >> browser, and set it in your code for the XMLhttp component. This way, > both >> browser and the XMLHttp component are using the same ASSPSESSIONID > cookie to >> talk to the ASP pages, and hence maintain the session. >> > |
Re: MSXML.XMLHTTP / ASP Page / Session
no dice, i ended up just passing all my vars through the querystring =/
|
| All times are GMT. The time now is 03:04 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.