Re: WebService session sessionstate SOAP

From: Brian Teutsch [MSFT] (brianteu_at_online.microsoft.com)
Date: 11/30/04


Date: Mon, 29 Nov 2004 17:33:13 -0800

InfoPath as a client doesn't respect the session cookie. You'll have to
receive the web service through script and store the header information into
the DOM somewhere, and handle the cookie get/send yourself. Sorry I don't
have any more information on how to do this, but at least you can stop
looking for something automatic within InfoPath.

Brian

"jb" <jb@discussions.microsoft.com> wrote in message
news:D508185A-92F1-4EAE-9997-531792C3D9DA@microsoft.com...
> *Please* help --- I'm tearing my hair out.
>
> I want to use sessionstate in a webservice, accessed from a client,
> written
> in script (JScript, InfoPath).
>
> I have written my webservice (C# .NET). I have marked the method(s) with
> EnableSession=true. I have read everything there is to read! I am told
> that
> to reuse session, my client needs to receive a cookie in the header from
> the
> webservice and then pass this back in all future calls. This can all be
> found in HttpWebClientProtocol.CookieContainer. I am told to "Assign the
> CookieContainer to the proxy class" in the web client.
>
> But my client isn't a C# .NET app! It's JScript in InfoPath.
>
> I have written code there to invoke the webmethod via SOAP/XMLHTTP, so I'm
> in charge of stuff. The call works fine, minus session stuff. But I
> cannot
> see where what I need for preserving the session is kept/accessed? As I
> understand it, I'm just looking to preserve a cookie for "sessionid" that
> will be in the "header" (SOAP header? HTTP header?) sent to me from the
> webservice?
>
> I'm lost & frustrated...



Relevant Pages

  • Re: Do IIS applications "go to sleep"?
    ... client side. ... This type of cookie is not disabled when one disables client ... using these session items. ... need your timer when you extend a session timeout to five days. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Do some operation just before sending response header
    ... If I want to change PHP session mechanism to store session data into ... you are allowing the client unrestricted access to modify the ... creating a cookie first) but it's a really bad idea to push the ... is it possible to hook before sending response header? ...
    (comp.lang.php)
  • RE: Wont save session object
    ... client machine's cookie setting. ... the ASP.NET's session is by default associated with all the client ... something incorrect with the client's cookie setting. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Hiding variables passed via URL
    ... unique session ID. ... That has to be carried by a cookie or by a URL. ... session ID as a URL than as a cookie. ... on a file on the server the client is communicating with. ...
    (comp.lang.php)
  • Re: WebService session sessionstate SOAP
    ... InfoPath as a client doesn't respect the session cookie. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Loading