•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 423,502 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,694 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 931 | Replies: 0
![]() |
•
•
Join Date: May 2008
Posts: 18
Reputation:
Rep Power: 1
Solved Threads: 0
Hey.
I'm using System.Web.Caching in my .asmx webservice in order to save some information about multiple users requests.
I insert that data like this:
cache.Insert(Unique_token, MySessionObjectForThatUserToken, null, Cache.NoAbsoluteExpiration, new TimeSpan(0, 15, 0));
And then retrieve it like this:
MySessionObjectForThatUserToken obj = (MySessionObjectForThatUserToken)cache[token];
As you can see, i have a slidding expiration time of 15minutes. So now, what i wanna know, is if it's possible to have some event that will fire whenever an object gets expired from the cache?
How can i archive this?
I would just need to know, what is the 'token' associated with the expired object.
I'm using System.Web.Caching in my .asmx webservice in order to save some information about multiple users requests.
I insert that data like this:
cache.Insert(Unique_token, MySessionObjectForThatUserToken, null, Cache.NoAbsoluteExpiration, new TimeSpan(0, 15, 0));
And then retrieve it like this:
MySessionObjectForThatUserToken obj = (MySessionObjectForThatUserToken)cache[token];
As you can see, i have a slidding expiration time of 15minutes. So now, what i wanna know, is if it's possible to have some event that will fire whenever an object gets expired from the cache?
How can i archive this?
I would just need to know, what is the 'token' associated with the expired object.
![]() |
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access advertising article blog bon browser browsers community company dani web data design development domains echo firefox forensic google help hosting html internet legal linux marketing michael knight microsoft mobile mozilla multimedia navigation news opera php privacy report research search security sex software survey video w3c web web development webmaster xml yahoo youtube
- Previous Thread: deploying a webservice
- Next Thread: Could not authenticate SOAP request


Linear Mode