开发者

How do I store temporary data manipulated by my ASP.NET module?

开发者 https://www.devze.com 2023-02-10 00:15 出处:网络
I estimate implementing WSSE authentication by extending code similar to this custom authentication module.

I estimate implementing WSSE authentication by extending code similar to this custom authentication module.

That code will be hosted in ASP.NET and registered in <system.web><httpModules> section in web.config file of the site. An instance of the module will be created by some code inside IIS, passed the request, live for some time and then destroyed.

In order to implement WSSE I need to somehow keep track of issued challenges ("nonces") to be able to prevent replay attacks.

So I need to store recent challenges somewhere in such way that the collection will persist between incoming requests and will be accessible by all the开发者_开发问答 module instances.

What is the most convenient (in terms of using it from C# and deploying it on a new server) and most typical solution for that?


Session["mySess"] can also help you

0

精彩评论

暂无评论...
验证码 换一张
取 消