title: The name 'Session' does not exist in the current context
body: <p>I'm having trouble figuring out how to get a session to work and I feel like I'm probably missing something really obvious. I have a master page in an ASP project and in it I have this code for the logged-in event of a log-in object on the master page:</p>
  
  <pre><code>protected void Login1_LoggedIn(object sender, EventArgs e) 
      {
          Session.Add("Username", Login1.UserName);
      }
  </code></pre>
  
  <p>So the session should contain the username used in the Log-in object to log in</p>
  
  <p>In the master page's contents I'm just trying a simple reference by making it show the username used to log in:</p>
  
  <pre><code>Welcome &lt;%Response.Write(Session("Username"))%&gt;
  </code></pre>
  
  <p>But "session" is underlined in red, saying "The name 'Session' does not exist in the current context". I've been trying to figure out what I'm missing but so far what I've tried hasn't done anything. </p>
  
  <p>Any Advice would be very appreciated.</p>