Sundar Narasimman
9/21/2006 1:56:00 PM
You need to leverage the mechanism for the data-caching for the Session
variable storing dates. You can store the session date inside the cache,
write the custom code to check for the time period of caching , if it's
within the caching time-limit take it from the Cache, else clear the cache
and update with new value
--
Thanks & Regards,
Sundar Narasimman
Technology Specialist
Microsoft .NET
"Stephane" wrote:
> Hi,
>
> I want to use .net caching with session variable instead of querystring. I
> mean, I use this directive:
>
> <% @OutputCache Duration="300" VaryByParam="id" %>
>
> which is working fine when the id in the query string change. But I also
> have some session variable in which I store dates. Thoses are not present in
> the query string not in a form and I would like to check if they have changed
> before using page in cache.
>
> So, I think to easiest way to do this is to clear the Cache when I change
> the session variables. But I don't know how to do that or even if it's
> possible.
>
> Any idea?
>
> Thanks
>
> Stephane