[Mono-bugs] [Bug 61232][Maj] New - Session restart doesn't work properly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 7 Jul 2004 06:28:59 -0400 (EDT)


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 juraj@hotfeet.ch.

http://bugzilla.ximian.com/show_bug.cgi?id=61232

--- shadow/61232	2004-07-07 06:28:59.000000000 -0400
+++ shadow/61232.tmp.26541	2004-07-07 06:28:59.000000000 -0400
@@ -0,0 +1,62 @@
+Bug#: 61232
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Fedore Core 2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: juraj@hotfeet.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Session restart doesn't work properly
+
+Upon session restart, a Session_Start is called with the same session id as
+the previous session. The page which triggers the restart gets an session
+with a different id and the session object's variables (Session["..."]) are
+not initialized (done in Session_Start).
+
+Steps to reproduce the problem:
+- unzip attached source files
+- start browser, clear cache, clear all cookies
+- start xsp
+- request "http://localhost:8080/test.aspx"
+  (output attached)
+- wait until session expires (3min, I waited some more to be safe)
+- click on link "dir2",i.e. request "http://localhost:8080/dir2/test.aspx"
+  (output attached)
+
+Actual Results:
+Error message on second page, as session vars are not initialized.
+Note that Session_Start sees the same session id two times, While the
+requested page show two different ids!
+
+Output xsp:
+[js@funnyfarm aspxtest]$ mono /usr/bin/xsp.exe --appconfigfile test.webapp
+Adding applications from config file 'test.webapp'
+Registering application:
+    Host:          localhost
+    Port:          8080
+    Virtual path:  /
+    Physical path: /home/js/aspxtest
+Listening on port: 8080
+Listening on address: 0.0.0.0
+Root directory: /home/js/aspxtest
+Hit Return to stop the server.
+Application started.
+Session started. (ID: 3C381A41B974F56149A3082EC4D959), Time: 11:45:42 AM.
+Session started. (ID: 3C381A41B974F56149A3082EC4D959), Time: 11:51:54 AM.
+
+
+How often does this happen?
+Always.
+
+
+Additional Info:
+I'm using mono from CVS head on a FC2 box. I had similar problems on a RH9 box.
+Sometimes XSP even segfaults upon exiting.