[Mono-bugs] [Bug 59364][Nor] New - Cokieless session and MapPath problem.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 31 May 2004 15:22:03 -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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59364
--- shadow/59364 2004-05-31 15:22:03.000000000 -0400
+++ shadow/59364.tmp.17009 2004-05-31 15:22:03.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 59364
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gonzalo@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Cokieless session and MapPath problem.
+
+Add this line to web.cofnig in <system.web> section:
+<sessionState mode="InProc" cookieless="true" />
+
+Then save this to index.aspx and run xsp:
+---------
+<%@ language="C#" %>
+<html>
+<script runat=server>
+ void Clicked (object o, EventArgs e)
+ {
+ Console.WriteLine (HttpContext.Current.Server.MapPath
+("SiteConfig/site.config"));
+ }
+</script>
+<head>
+<title>Button</title>
+</head>
+<body>
+<form runat="server">
+<asp:Button id="btn"
+ Text="Submit"
+ OnClick="Clicked"
+ runat="server"/>
+</form>
+</body>
+</html>
+-------------
+
+Actual results:
+It prints something:
+/tmp/app/(44EDA84672FA1873A7147F6FB90BF0)/SiteConfig/site.config
+
+to the console.
+
+Expected results:
+/tmp/app/SiteConfig/site.config