[Mono-bugs] [Bug 75542][Wis] Changed - SQL SessionState is not
saved when redirecting...
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jul 13 09:42:35 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 informatique.internet at fiducial.fr.
http://bugzilla.ximian.com/show_bug.cgi?id=75542
--- shadow/75542 2005-07-13 09:41:33.000000000 -0400
+++ shadow/75542.tmp.15159 2005-07-13 09:42:35.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 75542
Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: Sys.Web
AssignedTo: mono-bugs at ximian.com
ReportedBy: informatique.internet at fiducial.fr
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -42,6 +42,148 @@
It works well when you are in "InProc" mode but it failed when you're in
SQLServer Mode
So the UpdateHandler function is not called if you do a "redirect" in a
page... I think the session UpdateHandler should be called when you do a
redirect!
+
+------- Additional Comments From informatique.internet at fiducial.fr 2005-07-13 09:42 -------
+Test Case :
+using System;
+
+using System.Collections;
+
+using System.ComponentModel;
+
+using System.Data;
+
+using System.Drawing;
+
+using System.Web;
+
+using System.Web.SessionState;
+
+using System.Web.UI;
+
+using System.Web.UI.WebControls;
+
+using System.Web.UI.HtmlControls;
+
+
+
+namespace cluster
+
+{
+
+ /// <summary>
+
+ /// Description rsume de WebForm1.
+
+ /// </summary>
+
+ public class WebForm1 : System.Web.UI.Page
+
+ {
+
+ protected System.Web.UI.WebControls.Label Label2;
+
+ protected System.Web.UI.WebControls.Label Label3;
+
+ protected System.Web.UI.WebControls.Label Label4;
+
+ protected System.Web.UI.WebControls.Label Label1;
+ protected System.Web.UI.WebControls.Button Btn;
+
+
+
+ private void Page_Load(object sender, System.EventArgs e)
+
+ {
+
+ // Placer ici le code utilisateur pour initialiser la page
+
+ Label1.Text=this.Request.Url.ToString();
+
+ Label2.Text="Nb de sessions ouverte : "+Global.nb_session;
+
+ Label3.Text="Ip du serveur :
+"+System.Web.HttpContext.Current.Server.MachineName;
+
+ if (Session["nb_it"]==null)
+
+ Session["nb_it"]=new int();
+
+ Session["nb_it"]=(int)Session["nb_it"]+1;
+ Console.WriteLine(IsPostBack.ToString());
+ if (!IsPostBack)
+ {
+ Testage testage=new Testage();
+ testage.id="007";
+ testage.label="James Bond";
+ Session["object"]=testage;
+ }
+
+ Label4.Text="Page charg "+Session["nb_it"]+" fois";
+ Response.Redirect("WebForm2.aspx"); // redirect to another page
+
+ }
+
+ [Serializable]
+ internal class Testage
+ {
+ public string id="";
+ public string label="";
+
+ public Testage()
+ {
+ }
+
+ }
+
+
+
+ #region Code gnr par le Concepteur Web Form
+
+ override protected void OnInit(EventArgs e)
+
+ {
+
+ //
+
+ // CODEGEN: Cet appel est requis par le Concepteur Web Form ASP.NET.
+
+ //
+
+ InitializeComponent();
+
+ base.OnInit(e);
+
+ }
+
+
+
+ /// <summary>
+
+ /// Mthode requise pour la prise en charge du concepteur - ne
+modifiez pas
+
+ /// le contenu de cette mthode avec l'diteur de code.
+
+ /// </summary>
+
+ private void InitializeComponent()
+
+ {
+
+ this.Load += new System.EventHandler(this.Page_Load);
+
+
+
+ }
+
+ #endregion
+
+ }
+
+}
+
+
More information about the mono-bugs
mailing list