Replacing the default ASP.NET (2.0) SessionStateStoreProvider.

Abstract:

 

One of the good things that ASP.NET brings along is the Provider model that let us replace default ASP.NET providers with our own providers. The "provider" model let us changes several Session providers such as SessionIDModule and storage provider. Although HttpSessionStateProvider implement interface called IHttpSessionState I didn’t find any way in the code or any sign that it might be changed by config settings. I just found uses of  HttpSessionStateProvider and no sign for using IHttpSessionState and loading implement class from config file. Since I'm a fan of the session mechanism I decide to wear my madness suit and to try to create my own session store provider that uses memory map file (MMF) as session storage. Those lines describe the work that I've been done by now. And yes, I've also attached sample demo to those lines (the demo is just to demonstrate session store replacement I didn’t take the effort of optimize my solution).

for the full article refer to : http://weblogs.asp.net/ngur/articles/371952.aspx

No Comments