ASP.NET Session Problem
<p>1st Query......
I have a session variable cityId through which i find all the record. When i leave my application unattended  for  sometime then session expires &amp; it does get the value for city &amp; then throws exception.  How I can redirect to a error page when session expires like this.</p>

<p>2nd Query</p>

<p>When I click some page(myprofile.aspx), then i checks if the user is loged in or not, if user is not loged in then redirect to the login page &amp; if loged in then show the page
If I give the user login if user not logined to view the myprofile.aspx then when the use logs in the it should directly go the myprofile.aspx page rather than whatever i provided after login.</p>

<p>Help Me Out.</p>
