Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Web Service, session identification


Message #1 by "Sebastien Payette" <sebastien@s...> on Thu, 10 Oct 2002 16:35:14 +0100
It is my understanding that all the client browser cookies are stored in the
memory of the process running IIS. I am aware that you could store these
cookies in a DB, or in a different process, but I'm fine with the level of
access where cookies are in the same IIS process.

The thing is, how do you set session variable in the Web Application
(browser side), and render them available to an underlying Web Service?
Moving session variables between 2 WebForms of a same Web Application is
fine, but between the Client and the the Server (Web Service), it fails...
Anything in particular I could be doing wrong?
I know I could pass session variables as arguments to the methods of my Web
Services, but I think it is cleaner to retrieve session data directly from
the server cookies...
Any suggestion is appreciated, cheers!


----- Original Message -----
From: "Derrick Brundage" <brundaged@h...>
To: "ASPX_Professional" <aspx_professional@p...>
Sent: Thursday, October 10, 2002 9:52 PM
Subject: [aspx_professional] Re: Web Service, session identification


>
> This is something I've always wanted to do as well.  If the only way to
> accomplish this is to pass the SessionID into the Web Service, how do you
> attach to the session using the SessionID?
>
>
>
> >Is is possible for a Web Service to use the Session.SessionId property,
and
> >get the same value as within a Web Application calling this Web Service?
> >Every time I refresh the property-value Session.SessionId taken from a
Web
> >Service, I get a different response. That, even if it is always the same
> >browser making the request. I could of course pass the SessionId as an
> >argument, but it is my understanding that Session variables are stored
> >somewhere in IIS's memory. I shoudl therefore have access to them
directly,
> >no?
> >
> >For the record, Session.Abandon() is not called anywhere within the
> >program.
> >
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> ---
>
> ASP.NET 1.0 Namespace Reference with C#
> http://www.wrox.com/acon11.asp?ISBN=1861007442
>
> ASP.NET 1.0 Namespace Reference with VB.NET
> http://www.wrox.com/acon11.asp?ISBN=1861007450
>
> These books are a complete reference to the ASP.NET namespaces
> for developers who are already familiar with using ASP.NET.
> There is no trivial introductory material or useless .NET
> hype and the presentation of the namespaces, in an easy-to use
> alphabetical order ensures a user-friendly reference format.
> We provide in-depth coverage of all the major ASP.NET classes,
> giving you those real-world tips that the documentation doesn't
> offer, and demonstrating complex techniques with simple
> examples.
>
> ---


  Return to Index