title: Session Getting Lossed after Hyperlink Clicked
body: <p>I have a gridview that gets Hyperlink Values from my table which i also append to the NavigateUrl of the hyperlink like so</p>
  
  <pre><code>&lt;asp:HyperLink ID="LinkSection" runat="server" Text='&lt;%# Eval("SECTION") %&gt;' NavigateUrl='&lt;%# "http://localhost:50686/" + (string)Eval("SECTION") + ".aspx"%&gt;'&gt;
  </code></pre>
  
  <p>Everything seemed to work great while debugging the horror started once I went to deploy the website. I noticed IIS uses INPROC for Sessions not sure what Visual Studios uses while debugging but that works great.</p>
  
  <p>Once I go into my webconfig file and manually set Session Variables to use INPROC</p>
  
  <pre><code>&lt;sessionState mode="InProc"
                    cookieless="true"
                    regenerateExpiredSessionId="true"
                    timeout="30" /&gt;
  </code></pre>
  
  <p>My application no longer works seems like I am losing my Session Value once I click the hyperlink. So I added some logic to redirect back to my login page if the Session Value is null and the funny part is once I click a link and it sends me back to the login page, if i was to log back in it works sometimes.</p>
  
  <p>I am setting my session value like so</p>
  
  <pre><code>Session["LoggedInUser"] = txtEmail.Text;
  </code></pre>
  
  <p>And retrieve it </p>
  
  <pre><code> cmd.Parameters["@EMAILACCT"].Value = Session["LoggedInUser"];
  </code></pre>
  
  <p>I am not deploying this to any server farm so would like to stick with the best performance method of session which I read is INPROC if possible.</p>