storing user ID in session
<p>When the user logs in, I want to store his userID in the session with</p>

<pre><code>HttpContext.Current.Session["UserID"] = 2354; (this is just a hard-coded example)
</code></pre>

<p>Then, when I run a page method, if I do</p>

<pre><code>var test = HttpContext.Current.Session["UserID"];
</code></pre>

<p>will the variable test hold the value I stored when he logged in?</p>

<p>If this is a correct way of doing it, how do I access the session when I receive a call from a page method? I want to put the test =... line in a page method to identify which user the request is coming from.</p>

<p>Thanks.</p>
