[Mono-bugs] [Bug 71662][Nor] Changed - XSP: Accessibility to Session in Session_Ends (global.asax)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Aug 14 13:15:03 EDT 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by schwimmlehrer at hotmail.com.


--- shadow/71662	2005-07-24 14:55:59.000000000 -0400
+++ shadow/71662.tmp.3354	2005-08-14 13:15:03.000000000 -0400
@@ -100,6 +100,34 @@
 The Exception is thrown in HttpApplication.cs, because the session
 seems to be null:
 throw new HttpException ("Failed to get session object");
 I am still trying to figure out where the session is set to null
 (before the session expires)... if that's the problem.
+------- Additional Comments From schwimmlehrer at hotmail.com  2005-08-14 13:15 -------
+I think I have identified the problem. I do not have 100% knowledge of
+how HttpApplication is working so something of the following might be
+I hacked HttpContext.cs to create a unique id in SetSession of
+HttpContext and display it in the Session getter method (see
+attachment). I am getting the following output in Session_Start:
+Session: r=89899603/False 
+False means this is not a StaticFileHandler, the id of this context is
+But then there is this output:
+Session: r=0/True
+It think this is the browser requesting favicon or something.
+Now in Session_End I get:
+Session: r=0/False
+So I think that I am using the HttpApplication object that tried to
+serve the static favicon request, and not the one that generated the
+session cookie. So there really needs to be a way to access the right
+session in Session_End and not a random one from some session.

More information about the mono-bugs mailing list