|
|
"Dig within. Within is the wellspring of Good; and it is always ready to bubble up, if you just dig."
|
|
--
Marcus Aurelius
|
|
To install the StructureTooBig StateManager, follow these simple steps:
• Download the binaries and unzip to a convenient location.
• Copy *.dll from the /bin folder of the unzipped download folder to your
application's /bin folder.
• Copy StateManager.config to your application's root folder.
• Open your web.config file from your application's root folder and see if it
contains any HTTP Modules. The HTTP Module section looks something like this
(shout out to Mike @ Angrypets):
<httpModules>
<add type="StructureTooBig.StateManager.Module,
structureTooBig.StateManager" name="State" />
<add type="AngryPets.Web.Frameworks.ReverseDOS.FilterModule,
AngryPets.Web.Frameworks.ReverseDOS" name="reverseDOS" />
</httpModules>
• Each entry in the <httpModules> node
registers an HTTP Module. If you already have this section, copy the line below and
add it between the module tags.
<add type="StructureTooBig.StateManager.Module,
structureTooBig.StateManager" name="State" />
If you don't have an <httpModules> section,
you'll need to add the entire node. It should look like this when you're all set:
<system.web>
...
<httpModules>
<add type="StructureTooBig.StateManager.Module,
structureTooBig.StateManager" name="State" />
</httpModules>
...
</system.web>
All set! Load the site and if no errors occur, the module is running fine. Now we need
to modify the web application to make use of the site. If and when you're ready to disable
the built-in session state, make sure the
<sessionState>
entry in the web.config looks like so:
<sessionState mode="Off" />
|
|