ASP.NET scenario Interview question. How would you answer it?
<p>Here's the question scenario:</p>

<p>Suppose you have a multiple-page ASP.NET web site with the following
requirements: </p>

<ol>
<li><p>User-specific data for the currently logged in user is loaded and is required on each individual page of the application during a user's session. </p></li>
<li><p>The application itself only allows a certain number of users to be logged in at one time. </p></li>
<li><p>The next time a specific user logs in, the user should be returned to the last page visited. </p></li>
</ol>

<p>Given this information, briefly describe how you would use ASP.NET to manage the state of the application to meet these needs?</p>

<p>Here's my thoughts and reasons. Please provide yours.</p>

<blockquote>
  <p>User-specific data for the currently
  logged in user is loaded and is
  required on each individual page of
  the application during a user's
  session.</p>
</blockquote>

<p>This is suggesting to me that the interviewer is looking to see if I would suggest using Master pages as a way to provide a common approach to displaying the same thing on every page.</p>

<blockquote>
  <p>The application itself only allows a
  certain number of users to be logged
  in at one time.</p>
</blockquote>

<p>Could the sought response be that, because scaling isn't an issue due to the limited number of users, that it is OK to put this information in the Session object for performance reasons or is this a trap and some of approach is better?</p>

<blockquote>
  <p>The next time a specific user logs in,
  the user should be returned to the
  last page visited</p>
</blockquote>

<p>A cookie seems the best approach to track the last page access, since this doesn't seem to be critical information.</p>

<p>Please tell me how you would handle these question if you wanted to make the best impression</p>

<p>Feel free to provide input or comment an any line item.</p>

<p>Thanks!</p>
