| In order for your module to work, make sure IIS is configured to pass all requests (not just .aspx requests) to the .NET framework.
To access Session from an HTTPModule, you must add the IReadOnlySessionState or the IRequiresSessionState (readonly is better for performance if you don't need to write to the session). |