How to make per- http Request cache in ASP.NET 3.5

Posted by Artem on Stack Overflow See other posts from Stack Overflow or by Artem
Published on 2010-04-27T18:50:01Z Indexed on 2010/04/27 18:53 UTC
Read the original article Hit count: 326

Filed under:
|
|
|

We using ASP.NET 3.5 (Controls-based apporach) and need to have storage specific for one http request only.

Thread-specific cache with keys from session id won't work because threads are supposed to be pooled and therefore I have a chance to have data from some previous request in cache, which is undesireble in my case. I always need to have brand new storage for each request available through whole request.

Any ideas how to do it in ASP.NET 3.5?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-3.5