By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,877 Members | 1,064 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,877 IT Pros & Developers. It's quick & easy.

cache dataset on server accross WS calls

P: n/a
I want to cache a dataset on a server via a web service. I was thinking of
caching it in a session object and returning the session ID as a string in
the web service back to the windows client. Then I want the windows client
to call a aspx page passing in the sessionID as a parameter and therefore
could access the dataset for further processing.

So, from the web service call, how do I:
1) get the session ID
2) then from the aspx page, how do I use this session ID to retrieve the
session cached on the server?

some vb code examples would be great. any good ideas on this?

Thanks.

--
mo*******@nospam.nospam
Nov 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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...tacaching.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"
Nov 23 '05 #2

P: n/a
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"

Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.