title: Weird problem with session and DDL
body: <p>I'm using Seesion in my project that stores the useTypeID (admin, manager and so on) and for the backoffice only the admin and the manager can enter, so in every page in my backoffice in the first line i check if the seesion is stile alive and only then the user can enter the page:</p>
  
  <pre><code>if (!EmployeeSession.IsAuthenticated || EmployeeSession.GetEmployeeType != 1 &amp;&amp; EmployeeSession.GetEmployeeType != 2)
          Response.Redirect("Default.aspx");
  </code></pre>
  
  <p>The same code for all the pages...and all of them are working perfectly.</p>
  
  <p>I have one one page that is giving me lots of troubles since i added the session. The page still comes up correctly, but when i'm selecting a new area from the DDL i'm loosing my seesion for some reson and the postback goes to the false part of the session check...</p>
  
  <p>I debuged it and as i see it, it is only becouse of the DDL, can that be or do i have some other problem that i can't see?</p>
  
  <p>This is the code in the .aspx file:</p>
  
  <pre><code>&lt;td&gt;&lt;asp:DropDownList ID="ddlAreasSearch" runat="server" /&gt;&lt;/td&gt;
  </code></pre>
  
  <p>This is the code in the .cs file:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if (!EmployeeSession.IsAuthenticated || EmployeeSession.GetEmployeeType != 1 &amp;&amp; EmployeeSession.GetEmployeeType != 2)
          Response.Redirect("Default.aspx");
  
      if (Page.IsPostBack)
          return;
  
      DataSet ds = UiHelper.InitDDL(
                          ddlAreasSearch,
                          0,
                          "AreaName",
                          "AreaID",
                          ConfigurationManager.AppSettings["ConnStr"],
                          "spAreas_Select"
                      );
  
  }
  </code></pre>
  
  <p>The UiHelper is just for filling a DDL with a staic function:</p>
  
  <pre><code>public static DataSet InitDDL(DropDownList ddl, Int16 DataSetTableIndex, string DataTextField, string DataValueField, string ConnectionString, string CommandName, params SqlParameter[] Params)
  {
      DataSet ds = DbHelper.ExecuteDataSet(ConnectionString, CommandName, Params);
      ddl.DataSource = ds.Tables[DataSetTableIndex];
      ddl.DataTextField = DataTextField; 
      ddl.DataValueField = DataValueField;
      ddl.DataBind();
  
      return ds;
  }
  </code></pre>
  
  <p>The line that is calling this page is(just a href...nothing special, and agian, i have about 20 other the same that ar working...and when it is not a postback from the DDL every thing is working great, just after the postback i am looking the session):</p>
  
  <pre><code>&lt;div&gt;&lt;a href="SearchAreasWithDDL.aspx"&gt;חיפוש אזור&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I will be happy to give any other code if neccesery but as i see it, this is the code that is creating all the problems...And as i said, all other pages are doing the same thing, the only difference is the DDL....</p>
  
  <p>P.S. I don't even get to the button click that get the data related to the DDL, The session dies before the i enter the pageload of the page on postback....</p>
  
  <p>10x</p>