Skip to content

Commit 333f136

Browse files
josiahpetersStephenMolloy
authored andcommitted
Updated readme (#10)
- Added section to readme that includes instructions to replace existing web.config session module with the new session state module
1 parent cda2860 commit 333f136

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ SessionStateModule is ASP.NET’s default session-state handler which retrieves
99
## How to contribute
1010
Information on contributing to this repo is in the [Contributing Guide](CONTRIBUTING.md).
1111

12+
## Replace the existing Session module in `web.config`
13+
14+
Before you can specify one of these custom providers. You need to remove the existing session state module from your web.config file. In addition, you must register the new module to take its place.
15+
16+
```
17+
<system.webServer>
18+
<modules>
19+
<!-- remove the existing Session state module -->
20+
<remove name="Session" />
21+
<add name="Session" preCondition="integratedMode" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.0.0.0, Culture=neutral" />
22+
</modules>
23+
```
24+
1225
## Settings of the module and providers
1326

1427
+ #### Microsoft.AspNet.SessionState.SessionStateModule

0 commit comments

Comments
 (0)