[Mono-bugs] [Bug 75956][Nor] New - ASPSESSION cookie path incorrect

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 1 14:18:31 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 bugzilla at patearl.net.

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

--- shadow/75956	2005-09-01 14:18:31.000000000 -0400
+++ shadow/75956.tmp.17638	2005-09-01 14:18:31.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 75956
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bugzilla at patearl.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ASPSESSION cookie path incorrect
+
+Description of Problem:
+
+ASPESSION cookies have paths that are one level up from where they should
+be.  For example, an application hosted in /MyApp will have a cookie with
+path /.
+
+Steps to reproduce the problem:
+1. Create an aspx page in a directory (not just /) and visit it, allowing
+it to set the ASPSESSION cookies.
+
+Actual Results:
+
+The ASPSESSION cookies have paths that are one directory too high in the
+hierarchy.
+
+Expected Results:
+
+I would expect the path on the cookie to be the same as the path of the
+application being accessed.
+
+How often does this happen? 
+
+Consistently.
+
+Additional Information:
+
+Making the following change fixed the issue for me.  I did not analyze if
+the ApplicationPath sometimes indicates the name of a file instead of the
+folder for the application.
+
+mcs/class/System.Web/System.Web.SessionState/SessionStateModule.cs:193
+
+Change:
+  cookie.Path = UrlUtils.GetDirectory (context.Request.ApplicationPath);
+To:
+  cookie.Path = context.Request.ApplicationPath;


More information about the mono-bugs mailing list