Last post Feb 20, 2006 02:19 PM by mbanavige
Feb 03, 2006 04:12 PM|ojm37|LINK
How do I get to a session variable in an HTTPModule?
Some code I have references a session variable "Session("fred")". However, when I try to access that session variable in my httpModule (either in the BeginRequest event OR the AuthorizeRequest event), the session object is ALWAYS nothing. When and how can
I get to the session variables in my httpModule?
Feb 03, 2006 05:00 PM|ojm37|LINK
OK, I found the answer: SessionState is not available in either BeginRequest OR AuthorizeRequest. It is available in PreRequestHandlerExecute. It would be a REALLY interesting article to explain why!
Feb 03, 2006 05:14 PM|Jigar|LINK
Feb 20, 2006 02:19 PM|mbanavige|LINK
It would be a REALLY interesting article to explain why!
Session is also implemented in an HTTPModule.
So until the Session HTTPModule is loaded and initialized, you can't access the Session.