[Mono-list] HTTPSessionState order of events?

David P. Donahue ddonahue@ccs.neu.edu
Fri, 25 Feb 2005 09:08:08 -0500


Using Mono 1.0.6, I'm noticing something I find odd when referencing 
Session variables via:

if (Session[stringName] == stringValue){
...

I'm having no trouble with this in most contexts, but if I put such code 
in a Page_Load for my initial page, I get an "Object reference not set 
to an instance of an object" error.

Now, all the session variables that I use get initialized with default 
values in Global's Session_Start.  So, my question is, is Session_Start 
not firing before the initial Page_Load?  Is there something else that 
might be causing this?



Regards,
David P. Donahue
ddonahue@ccs.neu.edu