title: Performance of String literals vs constants for Session[...] dictionary keys
body: <h2>Session[Constant] vs Session["String Literal"] Performance</h2>
  
  <p>I'm retrieving user-specific data like <code>ViewData["CartItems"] = Session["CartItems"];</code> with a string literal for keys on every request. Should I be using constants for this?</p>
  
  <p>If yes, how should I go about implementing frequently used string literals and will it significantly affect performance on a high-traffic site?</p>
  
  <hr>
  
  <p><a href="https://stackoverflow.com/questions/1166254/should-i-use-string-constants-or-string-literals">Related question</a> does not address ASP.NET MVC or <code>Session</code>.</p>