[Mono-bugs] [Bug 75956][Nor] Changed - ASPSESSION cookie path
incorrect
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Sep 10 13:37:23 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-10 03:27:55.000000000 -0400
+++ shadow/75956.tmp.9293 2005-09-10 13:37:22.000000000 -0400
@@ -78,6 +78,75 @@
In any case, without the fix, I can't have two applications side by
side without having them break each other. I would ask you to
reconsider if this is a bug, or if perhaps there is a related cause
that MS has accounted for. Whether MS has handled it or not, it
certainly does not seem right that two separate applications should
have the ability to break each other inadvertently.
+
+------- Additional Comments From bugzilla at patearl.net 2005-09-10 13:37 -------
+To further demonstrate the poor behaviour, under the root, I created
+two files. App1 and App2 were configured as applications in the XSP
+command line.
+
+/App1/index.aspx was a bare page with the following code:
+
+ public void Page_Load() {
+ if (Session["App1"] == null) {
+ Console.WriteLine("(In App1) App1: null");
+ } else {
+ Console.WriteLine("(In App1) App1: " + Session["App1"]);
+ }
+ if (Session["App2"] == null) {
+ Console.WriteLine("(In App1) App2: null");
+ } else {
+ Console.WriteLine("(In App1) App2: " + Session["App2"]);
+ }
+ Session["App1"] = "One";
+ }
+
+/App2/index.aspx was a bare page with the following code:
+
+ public void Page_Load() {
+ if (Session["App1"] == null) {
+ Console.WriteLine("(In App2) App1: null");
+ } else {
+ Console.WriteLine("(In App2) App1: " + Session["App1"]);
+ }
+ if (Session["App2"] == null) {
+ Console.WriteLine("(In App2) App2: null");
+ } else {
+ Console.WriteLine("(In App2) App2: " + Session["App2"]);
+ }
+ Session["App2"] = "Two";
+ }
+
+The following steps were performed:
+
+ 1. Load App1/index.aspx
+ 2. Load App1/index.aspx
+ 3. Load App2/index.aspx
+ 4. Load App2/index.aspx
+ 5. Load App1/index.aspx
+
+Here is the result from the previous sequence of steps:
+
+Original: /App1
+Truncated: /
+(In App1) App1: null
+(In App1) App2: null
+(In App1) App1: One
+(In App1) App2: null
+Original: /App2
+Truncated: /
+(In App2) App1: null
+(In App2) App2: null
+(In App2) App1: null
+(In App2) App2: Two
+Original: /App1
+Truncated: /
+(In App1) App1: null
+(In App1) App2: null
+
+Note that each Original/Truncated line in the output indicates when
+the ASPSESSION cookie was set. The Truncated line indicates the
+cookie's path value. The Original line indicates the value of the
+path before the GetDirectory operation.
More information about the mono-bugs
mailing list