title: Storing data in HttpContext.Current.Items vs ViewData
body: <h2>When is it appropriate to store data in <code>HttpContext.Current.Items[...]</code> vs storing data in <code>ViewData[...]</code>?</h2>
  
  <p>I'm trying to figure out the best practices for storing data in this collection and I'm not sure if it's safe to store user-specific data in <code>HttpContext.Current.Items</code>.</p>
  
  <p>One use-case is passing down user credits from a base controller's <code>OnActionExecuting(...)</code> to be used in <code>Controller</code> calculations and for display in <code>Views</code>; I know I should be using <code>ViewData</code> for this, but I've had some inconsistent results with nested partial views.</p>
  
  <p>Would it be correct to say that <strong><code>HttpContext.Current.Items[...]</code></strong> is to <strong><code>Controllers</code></strong> like <strong><code>ViewData[...]</code></strong> is to <strong>Views</strong>?</p>