title: Using TempData while <sessionState mode="Off" />
body: <p>I was trying to make one site as session less. So add   <code>&lt;sessionState mode="Off" /&gt;</code>  to my web.config. After that if I execute </p>
  
  <pre><code> Session["test"] = "yes"; 
  </code></pre>
  
  <p>I get an error “<em>Object reference not set to an instance of an object.</em>” This is fine.</p>
  
  <p>But with this configuration I can set </p>
  
  <pre><code>TempData["test"] = "yes"; 
  </code></pre>
  
  <p>in controller and print <code>TempData["test"];</code> in View page. It is working well.</p>
  
  <p>As per <a href="http://msdn.microsoft.com/en-us/library/dd394711.aspx" rel="noreferrer">MSDN</a> “The TempData property value is stored in session state”.  </p>
  
  <p>So if I mention <code>&lt;sessionState mode="Off" /&gt;</code> how TempData is working?  Is ASP.NET still storing TempData in session or somewhere else?</p>