I am getting a \'session state not available in this context\' error.
The
You are requesting for session state too early in the cycle. you need to do it in Application_AcquireRequestState