IIS on Local Machine Not Saving Session State
<p>I currently have a local instance of IIS on my development machine with which I am working on development of an ASP.NET MVC application. I have IIS8, and currently the site loads, everything seems to be working fine except for session state.</p>

<p>When stepping through my code (all of which works fine on our demo server - so I know it's not the code), it seems the session variables are set without any exceptions being thrown. However, <strong>any time I attempt to access one of those variables, the value is returned as an empty string ("").</strong> I have checked what I know to look for in web.config, as well as settings in IIS with no luck. My Web.Config sessionState settings look like this:</p>

<pre><code>&lt;sessionState mode="InProc" timeout="240" /&gt;
</code></pre>

<p>I have tried adding other settings in here like cookieless, etc... However I haven't had any luck. I have also played with settings in IIS, current settings are in this screenshot: <a href="http://screencast.com/t/Vny4uUqMleB" rel="nofollow">http://screencast.com/t/Vny4uUqMleB</a></p>

<p><strong>EDIT: Adding some of the session state code for reference. Note that this system is written in VB despite my efforts to get them to switch to C# :(</strong></p>

<p>Firstly, this would be an example of it being set - we have a class for managing state (session, cookie, app, etc). both "key" and "value" are string variables passed in. </p>

<pre><code>HttpContext.Current.Session(key) = value
</code></pre>

<p>And when reading the value, same situation, the code is wrapped in a class for managing state, but this would be the important line:</p>

<pre><code>  //Read value from session state
  If Not (HttpContext.Current.Session(key) Is Nothing) Then
    strValue = HttpContext.Current.Session(key).ToString()
  End If
</code></pre>

<p>If anyone can give me some guidance on what to look at next, what things could potentially be affecting it, or really any clues whatsoever, I'd appreciate it! </p>