asp.net session store hastable
<p>I have a web forms application. When the user logs in I would like to retreive settings from the database that relates to that user. </p>

<p>So that I don't need to make a database call in the application when the settings are needed, I'm thinking about using the session object to store the values. Is this a good solution?</p>

<p>And if: Should I use for example a hastable or just store each value in the session.</p>

<pre><code>Session["SomeSetting"] = true;
Session["smtp"] = "Somesmtp.ee.no";
</code></pre>

<p>or</p>

<pre><code>Hastable settings New Hastable();
settings.Add("SomeSetting",true);
settings.Add("smtp","Some...");
</code></pre>

<p>There will be something like maximum 30 settings..</p>
