Hi Moondaddy,
I think Michael's suggestion on using the Cache collection instead of
Session is reasonable. For webservice, generally we're not recommeded to
use those implemention specific components such as the ASP.NET's
SessionState. Also, the ASP.NET sessionstate dosn't expose the directly
interfaces for use to access it through SessionID directly. So compared to
session, the applcation Cache is more recommended for your scenario. If you
have any other ideas or concerns, please feel free to post here.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
Message-ID: <43***************************@msnews.microsoft.co m>
From: Michael Nemtsev <ne*****@msn.com>
Subject: Re: cache dataset on server accross WS calls
References: <eq**************@TK2MSFTNGP10.phx.gbl>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1; format=flowed
X-Newsreader: JetBrains Omea Reader 661.1
Newsgroups: microsoft.public.dotnet.framework.webservices
Date: Tue, 30 Aug 2005 01:57:50 -0700
NNTP-Posting-Host: 62.231.16.21
Lines: 1
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:7670
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Hello moondaddy,
You need to use Cache class of System.Caching
There is a brief description and samples of how to use it
http://samples.gotdotnet.com/quickst...rl=%2fquicksta
rt%2faspplus%2fdoc%2fdatacaching.aspx
m> I want to cache a dataset on a server via a web service. I was
m> thinking of caching it in a session object and returning the session
m> ID as a string in the web service back to the windows client. Then I
m> want the windows client to call a aspx page passing in the sessionID
m> as a parameter and therefore could access the dataset for further
m> processing.
---
WBR,
Michael Nemtsev
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid. (c) Friedrich Nietzsche"