title: Session is always null when redirect to another page? c#
body: <p>I tried to add session and then i accessed on another page after redirect this always show null</p>
  
  <pre><code>Session.Add("pUser_Name", ds_1.Tables[0].Rows[0]["User_Name"].ToString());
  HttpContext.Current.ApplicationInstance.CompleteRequest();
  Response.Redirect("DashBoard.aspx", false);
  </code></pre>
  
  <p>here on another page i am accessing like this </p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
       if (Session["pUser_Name"] == null)  ////here is error NULL
       {
  
           Response.Redirect("Admin.aspx");
       }
   }
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>protected override void OnInit(EventArgs e)
  {
      if (Session["pUser_Name"] == null)
      {
          Response.Redirect("Admin.aspx");
      }
      base.OnInit(e);
  }
  </code></pre>
  
  <p>and also </p>
  
  <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DashBoard.aspx.cs" Inherits="SC.DashBoard" EnableTheming="true"
  Theme="Theme1" EnableSessionState="True" %&gt;
  </code></pre>
  
  <p>and Admin page where assigning value to session </p>
  
  <pre><code> &lt;%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="True" CodeBehind="Admin.aspx.cs" Inherits="SC.Admin" %&gt;
  </code></pre>
  
  <p>and web.config file </p>
  
  <pre><code>&lt;system.web&gt;
     &lt;compilation debug="true" targetFramework="4.0"/&gt;
     &lt;sessionState timeout="12000"/&gt;
  &lt;/system.web&gt;
  </code></pre>
  
  <p>but still facing same session is null</p>